aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorDonnie Barnes <djb@redhat.com>1997-10-23 19:37:48 +0000
committerDonnie Barnes <djb@redhat.com>1997-10-23 19:37:48 +0000
commitf4cc66886a0a1043a786e62c30d7ef2d40c50e03 (patch)
treebacf7e343e469639391eb818bb85589a91ebaa88 /rc.d/init.d
parent34d0b15663a995dff1ba2ebfa742afbac36fc1f2 (diff)
downloadinitscripts-f4cc66886a0a1043a786e62c30d7ef2d40c50e03.tar
initscripts-f4cc66886a0a1043a786e62c30d7ef2d40c50e03.tar.gz
initscripts-f4cc66886a0a1043a786e62c30d7ef2d40c50e03.tar.bz2
initscripts-f4cc66886a0a1043a786e62c30d7ef2d40c50e03.tar.xz
initscripts-f4cc66886a0a1043a786e62c30d7ef2d40c50e03.zip
added status|restart to all scripts
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/network9
-rwxr-xr-xrc.d/init.d/nfsfs9
-rwxr-xr-xrc.d/init.d/random9
3 files changed, 24 insertions, 3 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index b7a80705..45346aba 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -69,8 +69,15 @@ case "$1" in
./ifdown ifcfg-lo
rm -f /var/lock/subsys/network
;;
+ status)
+ status network
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
*)
- echo "Usage: network {start|stop}"
+ echo "Usage: network {start|stop|restart|status}"
exit 1
esac
diff --git a/rc.d/init.d/nfsfs b/rc.d/init.d/nfsfs
index 0f479b44..732bd660 100755
--- a/rc.d/init.d/nfsfs
+++ b/rc.d/init.d/nfsfs
@@ -34,8 +34,15 @@ case "$1" in
rm -f /var/lock/subsys/nfsfs
echo
;;
+ status)
+ status nfsfs
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
*)
- echo "Usage: nfsfs {start|stop}"
+ echo "Usage: nfsfs {start|stop|restart|status}"
exit 1
esac
diff --git a/rc.d/init.d/random b/rc.d/init.d/random
index 55c29856..686c80cc 100755
--- a/rc.d/init.d/random
+++ b/rc.d/init.d/random
@@ -36,8 +36,15 @@ case "$1" in
rm -f /var/lock/subsys/random
;;
+ status)
+ status random
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
*)
- echo "Usage: random {start|stop}"
+ echo "Usage: random {start|stop|restart|status}"
exit 1
esac