]>
git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - misc/uuidd.rc
4 # Required-Start: $time $local_fs
5 # Required-Stop: $time $local_fs
6 # Default-Start: 2 3 4 5
8 # Short-Description: uuidd daemon
9 # Description: Init script for the uuid generation daemon
12 # Author: "Theodore Ts'o" <tytso@mit.edu>
16 PATH
=/bin
:/usr
/bin
:/sbin
:/usr
/sbin
17 DAEMON
=/usr
/sbin
/uuidd
18 PIDFILE
=/var
/run
/uuidd
/uuidd.pid
20 test -x $DAEMON ||
exit 0
22 .
/lib
/lsb
/init-functions
26 log_daemon_msg
"Starting uuid generator" "uuidd"
27 start_daemon
-p $PIDFILE $DAEMON
31 log_daemon_msg
"Stopping uuidd generator" "uuidd"
32 killproc
-p $PIDFILE $DAEMON
36 if pidofproc
-p $PIDFILE $DAEMON >& /dev
/null
; then
37 echo "$DAEMON is running";
40 echo "$DAEMON is NOT running";
41 if test -f /var
/run
/uuidd.pid
; then exit 2; fi
50 echo "Usage: /etc/init.d/uuidd {start|stop|restart|force-reload}"