]> git.pld-linux.org Git - packages/glibc.git/blob - utmpd.init
- updated to 2.1.2.
[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 # Get config..
15 if [ -f /etc/sysconfig/utmpd ]; then
16     . /etc/sysconfig/utmpd
17 fi    
18 #       See how we were called.
19 #
20 case "$1" in
21   start)
22          show Starting utmpd daemon
23          daemon utmpd
24          touch /var/lock/subsys/utmpd
25         ;;
26   stop)
27         show Stopping utmpd daemon
28         killproc utmpd
29         rm -f /var/lock/subsys/utmpd
30         ;;
31   reload|restart)
32         $0 stop
33         $0 start
34         ;;
35   status)
36         status utmpd
37         ;;
38   *)
39         echo "Usage: $0 {start|stop|restart|reload|status}"
40         exit 1
41 esac
42
43 exit 0
This page took 0.198733 seconds and 3 git commands to generate.