From b495d6d38363970db2e6691d058aa1c9ebd4a920 Mon Sep 17 00:00:00 2001 From: nalin Date: Sep 05 2007 21:52:53 +0000 Subject: * scripts/oddjobd.in: work on conforming to Fedora initscripts standards. --- diff --git a/ChangeLog b/ChangeLog index 4de19a1..d648cc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ 2007-09-05 nalin + * scripts/oddjobd.in: work on conforming to Fedora initscripts + standards. * src/oddjobd.c: mention -t in the help output * src/oddjob{,d}.conf.in,src/oddjob{,d}-mkhomedir.conf.in: split the mkhomedir helper's configuration out into its own file, with its own diff --git a/scripts/oddjobd.in b/scripts/oddjobd.in index ea4eefa..1595c14 100644 --- a/scripts/oddjobd.in +++ b/scripts/oddjobd.in @@ -7,6 +7,16 @@ # description: oddjobd provides support for unprivileged applications which \ # require one of a set of specified privileged operations to be \ # performed on their behalf. +# +### BEGIN INIT INFO +# Provides: oddjobd +# Required-Start: $localfs $remotefs messagebus +# Required-Stop: $localfs $remotefs messagebus +# Short-Description: start and stop oddjob services +# Description: The oddjob service provides support for unprivileged +# applications which require one of a set of specified privileged +# operations to be performed on their behalf. +### END INIT INFO prefix=@prefix@ exec_prefix=@exec_prefix@ @@ -20,8 +30,6 @@ pidfile=/var/run/${prog}.pid # Source function library. . /etc/rc.d/init.d/functions -[ -f $oddjobd ] || exit 0 - start() { # Start daemons. echo -n $"Starting $prog: " @@ -73,11 +81,11 @@ case "$1" in start RETVAL=$? ;; - reload) + reload|force-reload) killproc ${oddjobd} -HUP RETVAL=$? ;; - condrestart) + condrestart|try-restart) if [ -f /var/lock/subsys/oddjobd ]; then stop start