3 # /etc/rc.d/init.d/utmpd
5 # utmp Starts the utmpd daemon
7 # chkconfig: 2345 25 55
8 # description: Utmpd daemon
12 # Source function library.
13 . /etc/rc.d/init.d/functions
15 # Get service config - may override defaults
16 [ -f /etc/sysconfig/utmpd ] && . /etc/sysconfig/utmpd
19 # See how we were called.
22 # Check if the service is already running?
23 if [ ! -f /var/lock/subsys/utmpd ]; then
27 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/utmpd
29 msg_Already_Running "utmpd"
34 if [ -f /var/lock/subsys/utmpd ]; then
37 rm -f /var/lock/subsys/utmpd >/dev/null 2>&1
39 msg_Not_Running "utmpd"
51 msg_Usage "$0 {start|stop|status|restart|reload}"