Re: $HOME changed from 6.2 to 6.3 and 7.0 ?!



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.
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • $HOME changed from 6.2 to 6.3 and 7.0 ?!
    ... after upgrading from 6.2R to 6.3R my daily jobs, ... The entry in daily.local is ... I cannot find such a homedir in /etc/passwd! ...
    (freebsd-stable)
  • Re: $HOME changed from 6.2 to 6.3 and 7.0 ?!
    ... after upgrading from 6.2R to 6.3R my daily jobs, ... there another place where the script daily.local will be launched. ... I' checked an older 5.5R an found in /etc/crontab an entry ...
    (freebsd-stable)
  • Re: $HOME changed from 6.2 to 6.3 and 7.0 ?!
    ... after upgrading from 6.2R to 6.3R my daily jobs, ... The entry in daily.local is ... there another place where the script daily.local will be launched. ...
    (freebsd-stable)
  • 4.x -> 6.x upgrade, some notes
    ... This weekend, I'm in the process of upgrading my Cyrus server from 4.x to 6.x, and thought I'd send out a few notes from places I gently stubbed my toe: ... that entry from /etc/fstab before booting a 5.x user space. ... upset PAM, which can't find any config files there, but won't use pam.conf ...
    (freebsd-stable)
  • Re: dcpromo fails on 2nd server after in-place upgrade of NT to W2
    ... Prior to upgrading the NT4 PDC, ... The above registry entry worked as promised. ...
    (microsoft.public.windows.server.active_directory)