On Thursday 11 of August 2005 22:43, glen wrote: > Author: glen Date: Thu Aug 11 20:43:47 2005 GMT > Module: SOURCES Tag: HEAD > ---- Log message: > - use start-stop-daemon to stop *only* listening sshd until somebody does > it with rc-scripts tools >
> if [ -f /var/lock/subsys/sshd ]; then > msg_stopping OpenSSH > - killproc sshd > - rm -f /var/run/sshd.pid /var/lock/subsys/sshd >/dev/null 2>&1 > + # we use start-stop-daemon to stop sshd, as it is unacceptable > for such > + # critical service as sshd to kill it by procname, but > unfortunately > + # rc-scripts does not provide way to kill *only* by pidfile > + start-stop-daemon --stop --quiet --pidfile /var/run/sshd.pid && > ok || > fail + rm -f /var/lock/subsys/sshd >/dev/null 2>&1 *PLEASE* fix / add new functionality to rc-scripts instead of messing with init script. What will happen if every developer will write own things in init scripts because he is too lazy to change rc-scripts? Add --pidfileonly option to killproc for example. -- Arkadiusz Miśkiewicz PLD/Linux Team http://www.t17.ds.pwr.wroc.pl/~misiek/ http://ftp.pld-linux.org/ _______________________________________________ pld-devel-en mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
