3 # devfsd Start/stop devfsd
5 # chkconfig: 12345 1 99
7 # description: Starts/stops devfsd - daemon responsible for creating smart
8 # links when using devfs
13 # Source function library
14 . /etc/rc.d/init.d/functions
16 # Read system config data
17 [ -r /etc/sysconfig/system ] || exit 1
18 . /etc/sysconfig/system
20 is_yes "$RUN_DEVFSD" || exit 1
22 # See how we were called.
25 # Check if the service is already running?
26 if [ ! -f /var/lock/subsys/devfsd ]; then
30 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/devfsd
32 msg_already_running devfsd
37 if [ -f /var/lock/subsys/devfsd ]; then
41 rm -f /var/lock/subsys/devfsd
43 msg_not_running devfsd
52 if [ -f /var/lock/subsys/<service> ]; then
57 msg_not_running devfsd
62 # if program allows reloading without stopping
73 # show "Usage: %s {start|stop|status|restart|reload|force-reload}" $0
74 msg_usage "$0 {start|stop|status|restart|reload|force-reload}"
80 # This must be last line !
81 # vi:syntax=sh:tw=78:ts=8:sw=4