From 4c3f3bf64e7ffc0627c72e664ab1ee69b62f5f0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Mon, 16 Aug 1999 09:38:39 +0000 Subject: [PATCH] killall is now chkconfig ready. updated TODO list. svn-id: @488 --- TODO | 8 ++++---- rc-scripts.spec.in | 10 ++-------- rc.d/init.d/killall | 43 +++++++++++++++++++++++++++---------------- 3 files changed, 33 insertions(+), 28 deletions(-) diff --git a/TODO b/TODO index 42421eea..d29191b5 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,4 @@ -- nie wszyscy maj± zainstalowan± quote - -- o ile to mo¿liwe usun±æ u¿ywanie awk i sed zastêpowaæ u¿yewaniem sh lub - przynajmeniej zastêpowaæ awka sedem +- BIND_DEV przy obs³udze tuneli trudno jest obs³u¿yæ z tego + wzglêdu, ¿e interfejsy s± podnoszone _po_ starcie tuneli. + Trzeba bêdzie przenie¶æ konfiguracjê interfejsów tuneli + z np. ifcfg-icm do tnlcfg-icm. Nie ma innego wyj¶cia :-( diff --git a/rc-scripts.spec.in b/rc-scripts.spec.in index 5598283e..d6c58a1f 100644 --- a/rc-scripts.spec.in +++ b/rc-scripts.spec.in @@ -1,4 +1,4 @@ -# $Id: rc-scripts.spec.in,v 1.24 1999/08/14 11:56:41 misiek Exp $ +# $Id: rc-scripts.spec.in,v 1.25 1999/08/16 09:38:39 misiek Exp $ Summary: inittab and /etc/rc.d scripts Summary(de): inittab und /etc/rc.d Scripts Summary(fr): inittab et scripts /etc/rc.d @@ -81,7 +81,7 @@ gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \ doc/*.txt %post -for i in halt random reboot single network nfsfs allowlogin +for i in halt random reboot single network nfsfs allowlogin killall do /sbin/chkconfig --add $i done if [ -f /etc/inittab.rpmsave ]; then @@ -91,12 +91,6 @@ if [ -f /etc/inittab.rpmsave ]; then echo "/etc/inittab.rpmsave renamed to /etc/inittab." mv /etc/inittab.rpmsave /etc/inittab fi -for l in /etc/sysconfig/network-scripts/ifcfg-* ; do - if [ -f "$l" ] ; then - NEWNAME=`basename $l` - [ -f /etc/sysconfig/interfaces/$NEWNAME ] || cp $l /etc/sysconfig/interfaces/$NEWNAME - fi -done %preun if [ "$1" = "0" ]; then diff --git a/rc.d/init.d/killall b/rc.d/init.d/killall index 647b2dcd..8255bcd6 100644 --- a/rc.d/init.d/killall +++ b/rc.d/init.d/killall @@ -1,21 +1,32 @@ #!/bin/sh # -# $Id: killall,v 1.4 1999/07/31 11:24:19 misiek Exp $ +# killall Script for system downing +# +# chkconfig: 12345 00 90 +# description: kill em all +# +# $Id: killall,v 1.5 1999/08/16 09:38:39 misiek Exp $ # Bring down all unneeded services that are still running (there shouldn't # be any, so this is just a sanity check) -for i in /var/lock/subsys/*; do - # Check if the script is there. - [ ! -f $i ] && continue - - # Get the subsystem name. - subsys=${i#/var/lock/subsys/} - - # Bring the subsystem down. - if [ -f /etc/rc.d/init.d/$subsys.init ]; then - /etc/rc.d/init.d/$subsys.init stop - else - /etc/rc.d/init.d/$subsys stop - fi -done - +case "$1" in + start*) + exit 0 + ;; + stop*) + for i in /var/lock/subsys/*; do + # Check if the script is there. + [ ! -f $i ] && continue + + # Get the subsystem name. + subsys=${i#/var/lock/subsys/} + + # Bring the subsystem down. + if [ -f /etc/rc.d/init.d/$subsys.init ]; then + /etc/rc.d/init.d/$subsys.init stop + else + /etc/rc.d/init.d/$subsys stop + fi + done + ;; +esac -- 2.44.0