mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
26cddc2497
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
26 lines
444 B
Bash
26 lines
444 B
Bash
#!/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
|