path: ser2net_4.6.5-1/ser2net.init ;; condrestart) if test "x`pidof ser2net`" != x; then stop start path: ser2net_4.6.5-1/ser2net.init stop() { echo -n "Shutting down ser2net " if test "x`pidof ser2net`" != x then killproc ser2net path: ser2net_4.6.5-1/debian/init.d start () { if ! pidofproc -p "$PIDFILE" "$DAEMON" >/dev/null; then start_daemon -p $PIDFILE $DAEMON ${CONTROLPORT:+-p} $CONTROLPORT -c $CONFFILE -P $PIDFILE $OPTIONS ret=$? path: ser2net_4.6.5-1/debian/init.d killproc -p "$PIDFILE" "$DAEMON" "$SIG" # this is a workaround for killproc -TERM not zapping the pidfile if ! pidofproc -p "$PIDFILE" "$DAEMON" >/dev/null; then rm -f $PIDFILE fi path: ser2net_4.6.5-1/debian/init.d { log_action_begin_msg "checking $DESC" if pidofproc -p "$PIDFILE" "$DAEMON" >/dev/null; then log_action_end_msg 0 "$NAME running" else path: ser2net_4.6.5-1/debian/changelog * add collab-maint info to debian/control * re-work description * fix usage of pidofproc (Closes: #718973) * move pidfile to /run * have init script depend on $remote_fs