Dear list, after upgrading from 6.2R to 6.3R my daily jobs, which are normaly executed from /etc/daily.local, are not longer started. The entry in daily.local is $HOME/bin/save-conf.sh 6.2R executed /root/bin/save-conf.sh 6.3R (and 7.0R) tries to start /var/log/bin/save-conf.bin Why? I cannot find such a homedir in /etc/passwd! Regards, Thomas.
Dear Thomas and FreeBSD friends, On Fri, Feb 29, 2008 at 12:52:11PM +0100, Thomas Krause wrote:> Dear list, > > after upgrading from 6.2R to 6.3R my daily jobs, which are normaly > executed from /etc/daily.local, are not longer started. > The entry in daily.local is > $HOME/bin/save-conf.sh > 6.2R executed /root/bin/save-conf.sh > 6.3R (and 7.0R) tries to start /var/log/bin/save-conf.bin > > Why? I cannot find such a homedir in /etc/passwd! > > Regards, > Thomas.I'm sorry, I do not know why $HOME is resolved to /var/log/. Is /usr/local/etc/periodic/daily/ not the place to put your daily executable scripts? What is daily.local about? I have searched the net myself and seems that daily.local is something out of an old box. It should be superseded by /usr/local/etc/periodic/daily/ Do you have a script like /usr/local/etc/periodic/daily/999.local Or is there another place where the script daily.local will be launched. I assume that daily.local is a script? Maybe there $HOME is set? -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, De jrus wah, Willy ************************************* W.K. Offermans Home: +31 45 544 49 44 Mobile: +31 653 27 16 23 e-mail: Willy@Offermans.Rompen.nl Powered by .... (__) \\\'',) \/ \ ^ .\._/_) www.FreeBSD.org
> Dear Thomas and FreeBSD friends, > > On Fri, Feb 29, 2008 at 12:52:11PM +0100, Thomas Krause wrote: >> Dear list, >> >> after upgrading from 6.2R to 6.3R my daily jobs, which are normaly >> executed from /etc/daily.local, are not longer started. >> The entry in daily.local is >> $HOME/bin/save-conf.sh >> 6.2R executed /root/bin/save-conf.sh >> 6.3R (and 7.0R) tries to start /var/log/bin/save-conf.bin >> >> Why? I cannot find such a homedir in /etc/passwd! >> >> Regards, >> Thomas. > > > I'm sorry, I do not know why $HOME is resolved to /var/log/. > > Is /usr/local/etc/periodic/daily/ not the place to put your daily > executable scripts? What is daily.local about? I have searched the net > myself and seems that daily.local is something out of an old box. It > should be superseded by /usr/local/etc/periodic/daily/ > Do you have a script like /usr/local/etc/periodic/daily/999.local Or is > there another place where the script daily.local will be launched. I > assume that daily.local is a script? Maybe there $HOME is set?my consideration was: gromit:/ # grep daily.local /etc/defaults/periodic.conf daily_local="/etc/daily.local" # Local scripts gromit:/ # uname -r 7.0-RELEASE I' checked an older 5.5R an found in /etc/crontab an entry HOME=/var/log - but in this release it has no effect ?! Best regards, Thomas.
At 2008-02-29 12:15:26+0000, Willy Offermans writes:> Is /usr/local/etc/periodic/daily/ not the place to put your daily > executable scripts? What is daily.local about?/etc/daily.local predates /etc/periodic/, somewhat. It was introduced in 1996. Before that, there was just the /etc/daily script, which was cut over to /etc/periodic/... some time in 1997. God bless the FreeBSD project's careful approach to compatibility. Nick B
On Fri, 29.02.2008 at 12:52:11 +0100, Thomas Krause wrote:> Dear list, > > after upgrading from 6.2R to 6.3R my daily jobs, which are normaly > executed from /etc/daily.local, are not longer started. > The entry in daily.local is > $HOME/bin/save-conf.sh > 6.2R executed /root/bin/save-conf.sh > 6.3R (and 7.0R) tries to start /var/log/bin/save-conf.bin > > Why? I cannot find such a homedir in /etc/passwd!Wrong place to look, it is set via /etc/crontab: % more /etc/crontab # /etc/crontab - root's crontab for FreeBSD # # $FreeBSD: src/etc/crontab,v 1.32 2002/11/22 16:13:39 tom Exp $ # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin HOME=/var/log # # ... # # Perform daily/weekly/monthly maintenance. 1 3 * * * root periodic daily 15 4 * * 6 root periodic weekly 30 5 1 * * root periodic monthly If this has changed from before, I guess it would be due to a new shell forking which always reset $HOME. Thus, it only worked before by sheer luck :) Cheers, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt.