From owner-freebsd-questions Mon Mar 6 5: 9:28 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 4FA5137BD67; Mon, 6 Mar 2000 05:09:17 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id IAA69149; Mon, 6 Mar 2000 08:14:47 -0500 (EST) (envelope-from cjc) Date: Mon, 6 Mar 2000 08:14:46 -0500 From: "Crist J. Clark" To: Ertan Kucukoglu Cc: cjclark@home.com, John Baldwin , questions@FreeBSD.ORG Subject: Re: crontab entries Message-ID: <20000306081446.A69107@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: <200002291211.HAA02326@server.baldwin.cx> <38C2565E.69DFB6F5@ozlerplastik.com> <20000305114958.D62310@cc942873-a.ewndsr1.nj.home.com> <38C3996C.83C2F7A3@ozlerplastik.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <38C3996C.83C2F7A3@ozlerplastik.com>; from ertank@ozlerplastik.com on Mon, Mar 06, 2000 at 01:41:32PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Mar 06, 2000 at 01:41:32PM +0200, Ertan Kucukoglu wrote: [snip] > The problem is before the 440.status-mailq. Here is the output of > periodic-daily: > ----- > 0 00:01:00 > 0 00:00:59 > 0 00:00:58 > [snipped] > 0 00:00:03 > 0 00:00:02 > 0 00:00:01 > 0 00:00:00 > fetchmail: can't accept options while a background fetchmail is running. > Subject: www.ozler.com daily run output > > Removing stale files from /var/preserve: > > Cleaning out old system announcements: > > Removing stale files from /var/rwho: > [snipped] > ----- > > I see here that periodic daily runs my /etc/rc.conf. I have delay > command in my rc.conf just after 'ppp -ddial -alias isp' command. The > seconds going down comes from delay command. You should _not_ put commands in rc.conf. There is no guarantee that it is executed only once during startup or at other times. Put command scripts in /usr/local/etc/rc.d/ or commands in /etc/rc.local. > That file is run *before* 120.clean-preserve. "Removing stale files from > /var/preserve:" message is included in that file. So there is two files: > 100.clean-disks > 110.clean-tmps > > I didn't see anything in that files and anyfile in /etc/periodic/daily/ > that includes rc.conf or something related. (If anybody wants to look at > them I can mail these (or all) periodic daily files) My > /etc/periodic/daily files are original ones. I didn't change them. The periodic(8) command itself grabs /etc/rc.conf. % more `which periodic` [snip] # If possible, check the global system configuration file, # to see if there are additional dirs to check if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi [snip] > Also I remember that 'periodic does not run non executable files', > /etc/rc.conf is not executable ("-rw-r--r--"). It does not run scripts that are not. > I also wish to know which directories are given as parameter to periodic > command in crontab? Use the source, Luke. periodic(8) is just a shell script. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message