help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: restart cron in Solaris


From: Marion Hakanson
Subject: Re: restart cron in Solaris
Date: Thu, 13 Dec 2001 10:57:26 -0800

Darren Dunham wrote:
> 
> 1) Put crontab in tempfile.
> 2) su $user "crontab tempfile"
> 3) rm tempfile
> . . .
> Another alternative is more brute-force.
> 1) Put the crontab(s) in place.
> 2) Kill and restart cron.


We have some old pre-cfengine code using "rdist" still lying around.
In that old code, we did this (no temp file needed):

1) Put the crontab in place, /var/spool/cron/crontabs/$user
2) su $user -c "crontab /var/spool/cron/crontabs/$user"

Regards,

-- 
Marion Hakanson <hakanson@cse.ogi.edu>
CSE Computing Facilities





reply via email to

[Prev in Thread] Current Thread [Next in Thread]