aboutsummaryrefslogblamecommitdiffstats
path: root/community/x2goserver/x2goserver.initd
blob: 2ae724797e6477a3f996bae0aedf9ee9720e6bd3 (plain) (tree)






















                                                                                               
#!/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 $?
}