[PATCH] sshd init script fixes (theedge)

elaine forbes elaine at fwsystems.com
Mon Feb 3 09:44:54 GMT 2003


I've comitted a change to /lib/lsb/init-functions in *theedge* only
which should make for cleaner restarts and was particularly motivated by
wanting to make sshd restart remotely without killing active client sshd
processes.

Because I don't want to mess with the initscript in moonbase until this
is moved into the lunar tree, here's a patch for /etc/init.d/sshd.

Please *don't* run this version of the script if you're not using
theedge for your lunar scripts. I haven't tested it with the old script.

The new script (tries) to show all current child processes and gives the
user a countdown to allow a ^C to cancel (the 'trap' of SIGINT has been
removed from /lib/lsb/init-functions to allow this)

The default 'start()' function in /lib/lsb/init-functions (theedge) now
calls the new function 'mk_spid()' which will create a status file in
/var/run to flag for 'mk_pid()' whether the service's PID file is 
created by the script or the daemon.

We need to test other scripts against the changed functions, I've
checked the ones I use and it looks pretty good, but I run a
substantially stripped down box.

elaine-------------- next part --------------
A non-text attachment was scrubbed...
Name: sshd_init_patch
Type: application/octet-stream
Size: 2375 bytes
Desc: not available
Url : http://dbguin.lunar-linux.org/pipermail/lunar/attachments/20030203/f56fd977/sshd_init_patch.obj


More information about the Lunar mailing list