]>
Commit | Line | Data |
---|---|---|
9fb0fa33 | 1 | #!/bin/sh |
da301058 | 2 | # |
3 | # /etc/rc.d/init.d/utmpd | |
4 | # | |
5 | # Starts the utmpd daemon | |
6 | # | |
f798dcab | 7 | # chkconfig: 2345 25 55 |
da301058 | 8 | # description: Utmpd daemon |
9 | # processname: utmpd | |
10 | # | |
da301058 | 11 | # Source function library. |
12 | . /etc/rc.d/init.d/functions | |
13 | ||
02156a25 | 14 | # Get config.. |
15 | if [ -f /etc/sysconfig/utmpd ]; then | |
16 | . /etc/sysconfig/utmpd | |
17 | fi | |
da301058 | 18 | # See how we were called. |
19 | # | |
20 | case "$1" in | |
21 | start) | |
22 | show Starting utmpd daemon | |
da301058 | 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 | *) | |
02156a25 | 39 | echo "Usage: $0 {start|stop|restart|reload|status}" |
da301058 | 40 | exit 1 |
41 | esac | |
42 | ||
43 | exit 0 |