]> git.pld-linux.org Git - packages/glibc.git/blame - utmpd.init
- updated to 2.1.2.
[packages/glibc.git] / utmpd.init
CommitLineData
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..
15if [ -f /etc/sysconfig/utmpd ]; then
16 . /etc/sysconfig/utmpd
17fi
da301058 18# See how we were called.
19#
20case "$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
41esac
42
43exit 0
This page took 0.049431 seconds and 4 git commands to generate.