[bugs] [OpenIndiana Distribution - Bug #736] root crontab does not survive reboot

illumos bugs bugs at lists.illumos.org
Sun Jul 17 03:33:24 PDT 2011


Issue #736 has been updated by Julian Wiesener.

Difficulty set to Medium
Tags set to needs-triage

please test by svcadm disable pkg/update.
It doesn't hurt, since it only will stop automatic refreshs, pkg refresh, pkg image-update will still work.

There are a few SMF services that edit or remove crontabs, time-slider, time-slider-rsync, pkg-update and svc-sar.

timeslider: remove_legacy_cronjobs
timeslider-rsync adds removes with grep -v "${RSYNC_PROG} $SMF_FMRI$"
sar: rm crontab/sys on stop

pkg-update
REFRESH_PROG="/usr/lib/update-manager/update-refresh.sh"

        crontab -l | grep -v "${REFRESH_PROG}" \
            > /tmp/saved-crontab.$$

        crontab /tmp/saved-crontab.$$
        check_failure $? "Unable to unschedule snapshots for $FMRI"


This will cause a replacement of the crontab with the output of crontab -REFRESH_PROG, i don't see how it could affect other entires.

(and yes, all 4 smf methots are a mess)
----------------------------------------
Bug #736: root crontab does not survive reboot
https://www.illumos.org/issues/736

Author: N2Deep N2Deep
Status: New
Priority: High
Assignee: 
Category: 
Target version: 
Difficulty: Medium
Tags: needs-triage


Making changes to a B148 root crontab is pointless if you reboot the machine. Your changes will be overwritten at the next reboot. After every reboot, the root crontab will look like it did after the initial B148 installation. I have confirmed this on two separate B148 desktop installs.

User crontabs seem to survive reboots.


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account



More information about the bugs mailing list