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

Re: reboot proceedure



On Sun, Oct 28, 2001 at 12:06:51AM +0200, Russell Coker wrote:

> If I have a number of programs specified in /etc/inittab when in which order 
> will they receive SIGTERM during suchdown?
> 
> A portslave user has the following in his inittab:
> 
> fr:12345:respawn:/usr/local/sbin/radiusd -f -s &> /dev/null
> s0:2345:respawn:/usr/local/sbin/portslave 6
> s8:2345:respawn:/usr/local/sbin/portslave 9
> s9:2345:respawn:/usr/local/sbin/portslave 10
> 
> His problem is that the radiusd gets killed before portslave, so the end of 
> call data can't be sent to radiusd from portslave and he misses billing 
> information.

If the order in which these things are started up or shut down is
important, they should probably be started/stopped from /etc/rc?.d,
rather than from inittab.  If they are set up this way purely to get the
'respawn' behavior, a daemonizing wrapper script might be appropriate.

-- 
 - mdz



Reply to: