path: rrdtool_1.9.0-2.1/etc/rrdcached-init-lsb max_iters=${STOP_WAIT_DELAY:-5} while [ 0 -lt ${max_iters} ] ; do if pidofproc -p ${PIDFILE} ${DAEMON} >/dev/null ; then log_warning_msg "${NAME} is still running" sleep 1 path: rrdtool_1.9.0-2.1/etc/rrdcached-init-lsb # Whatever's necessary to check daemon status. Sets PID if the daemon # is running. Return as pidofproc. do_status () { PID=$( pidofproc -p ${PIDFILE} ${DAEMON} ) path: rrdtool_1.9.0-2.1/etc/rrdcached-init-lsb ;; stop) if pidofproc -p ${PIDFILE} ${DAEMON} > /dev/null ; then do_stop RETVAL=$? path: rrdtool_1.9.0-2.1/etc/rrdcached-init-lsb ;; try-restart) if pidofproc -p ${PIDFILE} ${DAEMON} > /dev/null ; then do_stop do_restart_diag path: rrdtool_1.9.0-2.1/etc/rrdcached-init-lsb # is running. Return as pidofproc. do_status () { PID=$( pidofproc -p ${PIDFILE} ${DAEMON} ) return $? }