On Tue, Mar 07, 2006, Doug Summers wrote: > I'm a little confused on how OpenPKG uses cron for its maintenance. On > my AIX/HP/Solaris machines I get this in root's crontab: > > # <OpenPKG prefix=/syscfg/opkg pkg=openpkg> > # chronological tasks of /syscfg/opkg OpenPKG hierarchy > 0 0 1 * * [ -f /syscfg/opkg/etc/rc ] && /syscfg/opkg/etc/rc > all monthly > 0 0 * * 0 [ -f /syscfg/opkg/etc/rc ] && /syscfg/opkg/etc/rc > all weekly > 0 0 * * * [ -f /syscfg/opkg/etc/rc ] && /syscfg/opkg/etc/rc > all daily > 0 * * * * [ -f /syscfg/opkg/etc/rc ] && /syscfg/opkg/etc/rc > all hourly > 0,15,30,45 * * * * [ -f /syscfg/opkg/etc/rc ] && /syscfg/opkg/etc/rc > all quarterly > # </OpenPKG> > > However, on Linux (both SUSE and RHEL) I get nothing in cron nor in the > /etc/cron* directories. What's weird is that I get these messages on my > SUSE boxes, but not on my RHEL boxes (yes, I reinstalled to a different > location): > > Mar 7 10:15:00 mig /USR/SBIN/CRON[2264]: (root) CMD ( [ -f > /syscfg/opkg/etc/rc ] && /syscfg/opkg/etc/rc all quarterly) > Mar 7 10:15:00 mig /USR/SBIN/CRON[2266]: (root) CMD ( [ -f > /opt/openpkg/etc/rc ] && /opt/openpkg/etc/rc all quarterly) > Mar 7 10:15:00 mig /USR/SBIN/CRON[2270]: (root) CMD ([ -f > /syscfg/opkg/etc/rc ] && /syscfg/opkg/etc/rc all quarterly) > > How are these commands being called? I've searched and can't find > anything. Restarting cron or rebooting doesn't remove the old entries. > On RHEL I tried adding the above crontab entries but I'm getting no > messages.
Well, OpenPKG on some platforms (where possible) uses /etc/crontab and on others the per-user crontab. On Linux the /etc/crontab is used while on AIX the crontab of user "root" is used. But independent of the approach, the result is exactly the same. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org