aboutsummaryrefslogtreecommitdiffstats
path: root/community/x2goserver/x2goserver.initd
blob: 2ae724797e6477a3f996bae0aedf9ee9720e6bd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run

DAEMON=/usr/sbin/x2gocleansessions
PIDFILE=/var/run/x2goserver.pid
 
depend() {
	need net
	need localmount
 	after firewall
}
 
start() {
	ebegin "Starting ${SVCNAME}"
	start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- $DAEMON-OPTS
	eend $?
}
 
stop() {
	ebegin "Stopping ${SVCNAME}"
	start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
	eend $?
}