aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1998-04-20 21:00:12 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1998-04-20 21:00:12 +0000
commite154febd27424f5aff307d80c577cb44279fbeb5 (patch)
treed3970a6af84c48919eda9cb32cbaa96e307d49d6 /rc.d/init.d
parentc833c2cb490dd2e3c9fd4c3913d92aaee178c857 (diff)
downloadinitscripts-e154febd27424f5aff307d80c577cb44279fbeb5.tar
initscripts-e154febd27424f5aff307d80c577cb44279fbeb5.tar.gz
initscripts-e154febd27424f5aff307d80c577cb44279fbeb5.tar.bz2
initscripts-e154febd27424f5aff307d80c577cb44279fbeb5.tar.xz
initscripts-e154febd27424f5aff307d80c577cb44279fbeb5.zip
reasonable status, restart, reload
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/random16
1 files changed, 11 insertions, 5 deletions
diff --git a/rc.d/init.d/random b/rc.d/init.d/random
index 686c80cc..24f08d07 100755
--- a/rc.d/init.d/random
+++ b/rc.d/init.d/random
@@ -37,14 +37,20 @@ case "$1" in
rm -f /var/lock/subsys/random
;;
status)
- status random
+ # this is way overkill, but at least we have some status output...
+ if [ -c /dev/random ] ; then
+ echo "The random data source exists"
+ else
+ echo "The random data source is missing"
+ fi
;;
- restart)
- $0 stop
- $0 start
+ restart|reload)
+ # do not do anything; this is unreasonable
;;
*)
- echo "Usage: random {start|stop|restart|status}"
+ # do not advertise unreasonable commands that there is no reason
+ # to use with this device
+ echo "Usage: random {start|stop}"
exit 1
esac