TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:19180] debian: running init scripts from cron



On Mon, Jun 26, 2000 at 02:48:16PM +0000, John Hawley wrote:
> Hello,
> 
> I'm sure this is quite the Debian rookie question, but is there some
> trick to getting an init script to run from cron?  I'm running a radius
> server that needs restarted when the users file is modified, and just
> rerunning the init script from cron worked fine under Mandrake but fails
> under Debian.  I get the messages from the /etc/init.d/radiusd script
> that radiusd has been restarted, but the pid on the process has not
> changed, so I know it wasn't actually done.  Running the script manually
> from root works fine.

`restarting' doesn't always mean stopping a process and then starting a
new one.  Many servers will re-read their configuration file if you send
them a hangup (HUP) signal.  In many cases, that's exactly what the init
script does.  If you really want to restart the process, break it down
into the two commands of stop and start.


-- 
 _  _  _  _ _  ___    _ _  _  ___ _ _  __   My other computer is an 
/ \/ \(_)| ' // ._\  / - \(_)/ ./| ' /(__   abacus. 
\_||_/|_||_|_\\___/  \_-_/|_|\__\|_|_\ __)                             
[ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088@tc.umn.edu ]

PGP signature