[game-data-packager] 175/293: add status action to init script
Simon McVittie
smcv at debian.org
Fri Oct 14 00:12:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch quake
in repository game-data-packager.
commit a2678427ab7856c96259a876a73949ef41b5ef72
Author: David Banks <amoebae at gmail.com>
Date: Thu Oct 18 12:26:44 2012 +0100
add status action to init script
---
debian/changelog | 1 +
debian/quake-server.init | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b701148..4a89142 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
quake (2) UNRELEASED; urgency=low
* Add LSB description field to init script.
+ * Add status action to init script (ported from quake3 package).
-- David Banks <amoebae at gmail.com> Thu, 18 Oct 2012 12:23:51 +0100
diff --git a/debian/quake-server.init b/debian/quake-server.init
index e25b56c..0b064ae 100644
--- a/debian/quake-server.init
+++ b/debian/quake-server.init
@@ -81,9 +81,12 @@ case "$1" in
do_stop && sleep 1 && do_start
log_end_msg $?
;;
+ status)
+ status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $?
+ ;;
+
*)
- # echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
- echo "Usage: $0 {start|stop|restart|force-reload}" >&2
+ echo "Usage: $0 {start|stop|restart|force-reload|status}" >&2
exit 1
;;
esac
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list