diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-11-06 23:03:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-11-06 23:03:22 +0000 |
commit | dc37a23ea3ee26dcc845b1b81c2ede9133623e79 (patch) | |
tree | 1836fa725fd91745f0cb5b7abc1058c3c8d14e48 | |
parent | 15dd687411b0d5324e180e253f4562f48428ed2f (diff) |
only run calendar on yp server; from matthieu@laas.fr
-rw-r--r-- | etc/daily | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/daily b/etc/daily index fb1509ecc8d..5f15e60e485 100644 --- a/etc/daily +++ b/etc/daily @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: daily,v 1.9 1996/07/27 14:12:24 downsj Exp $ +# $OpenBSD: daily,v 1.10 1996/11/06 23:03:21 deraadt Exp $ # PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local host=`hostname -s` @@ -84,8 +84,12 @@ if [ -f /var/account/acct ]; then fi echo "" -echo "Running calendar:" -calendar -a +if [ -d /var/yp/binding -a ! -d /var/yp/`domainname` ]; then + echo "Not running calendar, (yp client)" +else + echo "Running calendar:" + calendar -a +fi # Rotation of mail log now handled automatically by cron and 'newsyslog' |