aboutsummaryrefslogtreecommitdiff
path: root/network/x2goserver/rc.x2goserver
diff options
context:
space:
mode:
authorElvio Basello <hellvis69@gmail.com>2014-09-10 18:13:44 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-09-10 18:13:44 +0700
commit26cddc24972c0da9747d651ae74c86900d2dee44 (patch)
treebd2f3fac0a110c61188593baf6871f5c1d86567d /network/x2goserver/rc.x2goserver
parent597ccc0e47df46cfef510fab11fae690022fafa9 (diff)
network/x2goserver: Added (X2Go Remote Desktop solution).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/x2goserver/rc.x2goserver')
-rw-r--r--network/x2goserver/rc.x2goserver26
1 files changed, 26 insertions, 0 deletions
diff --git a/network/x2goserver/rc.x2goserver b/network/x2goserver/rc.x2goserver
new file mode 100644
index 0000000000000..49bdedafffea9
--- /dev/null
+++ b/network/x2goserver/rc.x2goserver
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# /etc/rc.d/rc.x2goserver
+#
+# Start/stop/restart the X2Go server.
+#
+# To make X2Go start automatically at boot, make this
+# file executable: chmod 755 /etc/rc.d/rc.x2goserver
+
+case "$1" in
+ 'start')
+ /usr/sbin/x2gocleansessions
+ ;;
+ 'stop')
+ killall x2gocleansessions
+ # Forcibly remove .pid locations:
+ rm -f /var/run/x2goserver.pid
+ ;;
+ 'restart')
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+ ;;
+esac