mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
24 lines
397 B
Plaintext
24 lines
397 B
Plaintext
#!/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 $?
|
|
}
|
|
|