Browse Source

Fix and document "status" target in init script

Christoph Biedl 8 years ago
parent
commit
bde911148b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      debian/ngircd.init

+ 2 - 2
debian/ngircd.init

@@ -126,7 +126,7 @@ stop)
     esac
     ;;
 status)
-   status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+   status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?
    ;;
 reload|force-reload)
     log_daemon_msg "Reloading $DESC" "$NAME"
@@ -152,7 +152,7 @@ restart)
     esac
     ;;
 *)
-    echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+    echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2
     exit 3
     ;;
 esac