@reboot local crontabs do not run for likewise-open5 domain users.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
likewise-open5 (Ubuntu) |
Fix Released
|
Low
|
Thierry Carrez |
Bug Description
Binary package hint: likewise-open5
I had likewise-open4 before upgrading to Jaunty, and this worked. Given the domain user shadwickt, I have jobs set in that user's crontab to run @reboot. That user does not have a local account on the system. At reboot, the following gets written to syslog:
Jul 31 10:11:41 shadwickt-desk /usr/sbin/
Jul 31 10:11:41 shadwickt-desk /usr/sbin/
Jul 31 10:11:41 shadwickt-desk /usr/sbin/
That user's personal crontab gets skipped for @reboot jobs. Later crontabs do work.
likewise-open5's daemons (npcmuxd, dcerpcd, eventlogd, netlogond, and lsassd) start after cron. As a result, the user really does not exist to the system when cron first starts, thus the cron entry can't run @reboot.
To see why, do an ls of /etc/rc2.d. You'll note that cron has a symlink at S89, while the likewise daemons are at S91-S93.
The fix is simple, I changed my startup order in /etc/rc2.d through /etc/rc3.d so that it looks like this:
S85dcerpcd
S86eventlogd
S86netlogond
S86npcmuxd
S87lsassd
This is before both anacron and cron which are S89. Do that in all 4 of the rc directories listed, and reboot.
Related branches
Changed in likewise-open5 (Ubuntu): | |
assignee: | nobody → Thierry Carrez (ttx) |
status: | Triaged → In Progress |
Thanks for reporting this and for the thorough analysis.