[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: restart cron in Solaris
From: |
Darren Dunham |
Subject: |
Re: restart cron in Solaris |
Date: |
Mon, 10 Dec 2001 09:02:21 -0800 (PST) |
>
>
> Is this safe? Seems dangerous to edit /var/spool/cron/crontabs/root
> directly, cron is placing the real file here, what if cron overwrites the
> edits?
'cron' doesn't move/write crontab files, 'crontab' does.
Yes, there's a race condition here, but you should decide how bad it
could be. I would imagine that it's pretty safe. If you're talking
about root's crontab, then if you know that it's maintained by cfengine,
you shouldn't be editing it anyway.
For root, it's easy enough to just run 'crontab <tempfile>' and activate
it. For other users, you'd have to do that in an 'su', and it might be
easier to edit the file directly and then either
kill/restart cron or
talk to the FIFO directly
as a method of activating the edits.
--
Darren Dunham ddunham@taos.com
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< How are you gentlemen!! Take off every '.SIG'!! >
- encrypt.c: In function `LoadSecretKeys':, Rune Mossige, 2001/12/05
- Re: encrypt.c: In function `LoadSecretKeys':, Rune Mossige, 2001/12/06
- Re: encrypt.c: In function `LoadSecretKeys':, Eric Methorst, 2001/12/07
- restart cron in Solaris, Daniel Nilsson, 2001/12/07
- Re: restart cron in Solaris, Ted Zlatanov, 2001/12/07
- Re: restart cron in Solaris, Alan Silver, 2001/12/07
- Re: restart cron in Solaris, Katherine Morris, 2001/12/07
- Re: restart cron in Solaris, Daniel Nilsson, 2001/12/10
- Re: restart cron in Solaris,
Darren Dunham <=
- Re: restart cron in Solaris, Ted Zlatanov, 2001/12/10
- Re: restart cron in Solaris, Dan Zubairi, 2001/12/10
- Re: restart cron in Solaris, Katherine Morris, 2001/12/10
- Re: restart cron in Solaris, Katherine Morris, 2001/12/10
- Re: restart cron in Solaris, Daniel Nilsson, 2001/12/11
- Re: restart cron in Solaris, Katherine Morris, 2001/12/12
- Re: restart cron in Solaris, Rich Dempsey, 2001/12/12
- Re: restart cron in Solaris, Darren Dunham, 2001/12/12
- Re: restart cron in Solaris, Rich Dempsey, 2001/12/12
- Re: restart cron in Solaris, Marion Hakanson, 2001/12/13