[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: restart cron in Solaris
From: |
Daniel Nilsson |
Subject: |
Re: restart cron in Solaris |
Date: |
Mon, 10 Dec 2001 09:05:55 +0100 (CET) |
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?
Anyone else using this method?
I cant find the "old" discussion in the archives... any pointers?
/// Daniel
On Fri, 7 Dec 2001, Katherine Morris wrote:
> I'm using shell command, crontab takes a file as an argument.
>
> crontab /var/spool/cron/crontabs/root
>
> ----- Original Message -----
> From: "Alan Silver" <asilver@hbs.edu>
> To: "Daniel Nilsson" <dlist@nlsn.nu>
> Cc: <help-cfengine@gnu.org>
> Sent: Friday, December 07, 2001 1:17 PM
> Subject: Re: restart cron in Solaris
>
>
> > Daniel:
> >
> > I don't believe that cron accepts any signals. You will need to kill and
> > restart the cron in order for your example to work. But, it might be
> > easier to just use crontab -e rather than editing a tmp file. That way,
> > you won't have to worry about stopping and restarting cron. YOu should
> > be able to do your example using crontab -e.
> >
> > alan
> >
> > Daniel Nilsson wrote:
> > >
> > > Does sending HUP to cron really reread crontabs in Solaris?
> > >
> > > Ive tried:
> > >
> > > "cron" signal=hup inform=false
> > >
> > > But it doesnt work...
> > >
> > > How are you editing crontabs? (crontab -l > /tmp/aaa;vi /tmp/aaa;crontab
> > > /tmp/aaa) ???
> > >
> > > /// Daniel
> > >
> > > _______________________________________________
> > > Help-cfengine mailing list
> > > Help-cfengine@gnu.org
> > > http://mail.gnu.org/mailman/listinfo/help-cfengine
> >
> > --
> > Alan Silver
> > UNIX Systems Administrator
> > Harvard Business School
> >
> > 617-495-5801
> > asilver@hbs.edu
> >
> > "The two prime movers of the Universe are Time and Luck"
> > -- Kurt Vonnegut
> >
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@gnu.org
> > http://mail.gnu.org/mailman/listinfo/help-cfengine
>
>
- 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 <=
- Re: restart cron in Solaris, Darren Dunham, 2001/12/10
- 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