How to kill cron and start cron again, using cron ?

Geert W.T. Jonkheer CCS/TS geert at ahds.UUCP
Mon Apr 8 23:37:10 AEST 1991


For a reason, i want to kill cron(1) for a little moment and
then start it again (when there are now processes running, started
by cron).
As this must occur automatically (one's a year) , cron(1) must
be killed using cron(1). You can't use at(1) to kill 
cron, because atrun is also started from cron, thus this 
isn't a solution. 

The killing of cron, will succeed, but after it has been killed, 
it never starts up again. The program that killed cron, doesn't
run anymore, because it killed his parent 'cron'. 
I've tried to start cron(1) from init(1), using an 
inittab(4) entry for cron. I'll quote:

'cron:1:respawn:/etc/cron' 

But when i did this, cron(1) starts over 
and over again, apparently init(1) does not see that cron has 
already started yet.

Is there somebody who can help, any suggestions are welcome?

Thanks in advance.
 
Geert.

----------------------------------------------------------------------
Albert Heyn B.V. Zaandam.                  UUCP: ....!hp4nl!ahds!geert
The Netherlands. 
----------------------------------------------------------------------



More information about the Comp.unix.questions mailing list