aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
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