]> git.pld-linux.org Git - packages/glibc.git/blob - utmpd.init
0bc05a7ca8989ef0ce3d60c1eae71528492fa788
[packages/glibc.git] / utmpd.init
1 #!/bin/sh
2 #
3 #       /etc/rc.d/init.d/utmpd
4 #
5 # Starts the utmpd daemon
6 #
7 # chkconfig: 2345 25 55
8 # description: Utmpd daemon
9 # processname: utmpd
10 #
11 # Source function library.
12 . /etc/rc.d/init.d/functions
13
14 #       See how we were called.
15 #
16 case "$1" in
17   start)
18          show Starting utmpd daemon
19          daemon utmpd
20          touch /var/lock/subsys/utmpd
21         ;;
22   stop)
23         show Stopping utmpd daemon
24         killproc utmpd
25         rm -f /var/lock/subsys/utmpd
26         ;;
27   reload|restart)
28         $0 stop
29         $0 start
30         ;;
31   status)
32         status utmpd
33         ;;
34   *)
35         echo "Usage: $0 {start|stop|restart|reload|status}"
36         exit 1
37 esac
38
39 exit 0
This page took 0.020531 seconds and 2 git commands to generate.