Browse Source

only run calendar on yp server; from matthieu@laas.fr

OPENBSD_2_1
deraadt 28 years ago
parent
commit
c193bcf0e6
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      src/etc/daily

+ 7
- 3
src/etc/daily View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/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 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local
host=`hostname -s` host=`hostname -s`
@ -84,8 +84,12 @@ if [ -f /var/account/acct ]; then
fi fi
echo "" 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' # Rotation of mail log now handled automatically by cron and 'newsyslog'


Loading…
Cancel
Save