From dc37a23ea3ee26dcc845b1b81c2ede9133623e79 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 6 Nov 1996 23:03:22 +0000 Subject: only run calendar on yp server; from matthieu@laas.fr --- etc/daily | 10 +++++++--- 1 file 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' -- cgit v1.2.3