aboutsummaryrefslogtreecommitdiff
path: root/network/x2goserver/rc.x2goserver
blob: 49bdedafffea9afa772a8c5829bf29a2073b1dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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