[X2Go-Commits] [x2goserver] 02/09: debian/x2goserver.init: status option / LSB header + Add status option for init script (test if x2gocleansessions is running or not). + Add Description key to LSB header.
git-admin at x2go.org
git-admin at x2go.org
Tue Apr 1 10:42:26 CEST 2014
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goserver.
commit 2d1212b279eb9c72eae0952297df57e200e80cce
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Apr 1 10:29:38 2014 +0200
debian/x2goserver.init: status option / LSB header
+ Add status option for init script (test if x2gocleansessions is
running or not).
+ Add Description key to LSB header.
---
debian/changelog | 4 ++++
debian/x2goserver.init | 9 +++++++++
2 files changed, 13 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index b822a28..0cd9269 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -123,6 +123,10 @@ x2goserver (4.0.1.14-0x2go1) UNRELEASED; urgency=low
* debian/*.doc-base:
+ Provide *.doc-base files for bin:packages containing HTML man pages
or other documentation.
+ * debian/x2goserver.init:
+ + Add status option for init script (test if x2gocleansessions is
+ running or not).
+ + Add Description key to LSB header.
[ Harald Nordgard-Hansen ]
* New upstream release (4.0.1.14):
diff --git a/debian/x2goserver.init b/debian/x2goserver.init
index 990a2a9..9d60957 100644
--- a/debian/x2goserver.init
+++ b/debian/x2goserver.init
@@ -1,4 +1,5 @@
#! /bin/sh -e
+
### BEGIN INIT INFO
# Provides: x2goserver
# Required-Start: $remote_fs $syslog
@@ -6,6 +7,7 @@
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the X2Go daemon
+# Description: The X2Go daemon is responsible for post-session clean-ups
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@@ -42,6 +44,13 @@ case "$1" in
sleep 1
start
;;
+ status)
+ if ps -C x2gocleansessions 1>/dev/null 2>/dev/null; then
+ log_action_msg "X2Go Server clean-up daemon is up and running"
+ else
+ log_warning_msg "X2Go Server clean-up daemon is down"
+ fi
+ ;;
*)
N=/etc/init.d/x2goserver
echo "Usage: $N {start|stop|restart|force-reload}" >&2
--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git
More information about the x2go-commits
mailing list