]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
killall is now chkconfig ready.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 16 Aug 1999 09:38:39 +0000 (09:38 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 16 Aug 1999 09:38:39 +0000 (09:38 +0000)
updated TODO list.

svn-id: @488

TODO
rc-scripts.spec.in
rc.d/init.d/killall

diff --git a/TODO b/TODO
index 42421eea27d220003e259d62ab6620453716ff2c..d29191b55ce8a6c29c5d00a3b729d52a9ed92b43 100644 (file)
--- 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 :-(
index 5598283ed36971c504a7bd07f6006581f5c688ab..d6c58a1f2a1dc3827fd3fc5253b259b63499f708 100644 (file)
@@ -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
index 647b2dcd9cdbd86914156159c0975c616a24eb9f..8255bcd60269080a184b7eb1e79401b604abbc60 100644 (file)
@@ -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
This page took 0.084514 seconds and 4 git commands to generate.