path: srcpd_2.1.7-2/init.d.lsb # The killproc is called with out a signal but it returns _NOT_ 0 if the # service is _NOT_ running. if pidofproc $PROG_BIN > /dev/null ; then (killproc $PROG_BIN && log_success_msg && exit 0) || (log_failure_msg && exit 1) else path: srcpd_2.1.7-2/init.d.lsb { echo -n $"Stopping $PROG:" # The if pidofproc i only there because Fedora doesn't comply with Linux # Standard Base # From LSB: path: srcpd_2.1.7-2/init.d.lsb status() { # Again Fedora's return values from pidofproc does not comply with # Linux Standard Base. Because of this status will only tell if the # service is running all other states are crock path: srcpd_2.1.7-2/init.d.lsb { echo -n $"Trying to restart $PROG:" if pidofproc $PROG_BIN > /dev/null ; then (! killproc $PROG_BIN && log_failure_msg && exit 1) (start_daemon "$PROG_BIN -f /etc/${PROG}.conf" && log_success_msg && exit 0) || (log_failure_msg && exit 1) path: srcpd_2.1.7-2/init.d.lsb { echo -n $"Restarting $PROG:" # The if pidofproc is used here again because Fedora does not comply # with LSB (see stop()) if pidofproc $PROG_BIN > /dev/null ; then path: srcpd_2.1.7-2/init.d.lsb # The if pidofproc is used here again because Fedora does not comply # with LSB (see stop()) if pidofproc $PROG_BIN > /dev/null ; then ! killproc $PROG_BIN && log_failure_msg && exit 1 fi path: srcpd_2.1.7-2/init.d.lsb # Linux Standard Base. Because of this status will only tell if the # service is running all other states are crock pidofproc $PROG_BIN > /dev/null RETVAL=$? case "$RETVAL" in