]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - misc-utils/uuidd.rc.in
4 # Required-Start: $time $local_fs $remote_fs
5 # Required-Stop: $time $local_fs $remote_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
20 UUIDD_DIR
=@runstatedir@
/uuidd
21 PIDFILE
=$UUIDD_DIR/uuidd.pid
23 test -x $DAEMON ||
exit 0
25 .
/lib
/lsb
/init-functions
29 log_daemon_msg
"Starting uuid generator" "uuidd"
30 if ! test -d $UUIDD_DIR; then
32 chown
-R $UUIDD_USER:$UUIDD_GROUP $UUIDD_DIR
34 start_daemon
-p $PIDFILE $DAEMON
38 log_daemon_msg
"Stopping uuid generator" "uuidd"
39 killproc
-p $PIDFILE $DAEMON
43 if pidofproc
-p $PIDFILE $DAEMON >/dev
/null
2>&1; then
44 echo "$DAEMON is running";
47 echo "$DAEMON is NOT running";
48 if test -f $PIDFILE; then exit 2; fi
57 echo "Usage: /etc/init.d/uuidd {start|stop|restart|force-reload}"