aboutsummaryrefslogtreecommitdiffstats
path: root/community/x2goserver/x2goserver.initd
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-06-02 09:55:54 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-06-02 09:56:00 +0000
commitce4ebf229c1bb1cdc7341b3fe15af4c8a20caa39 (patch)
tree0337b749d70444dd8b0517ea1bc24092d386e7cb /community/x2goserver/x2goserver.initd
parentf97dd706ee9a03ff9e2fe1462e4e0dce56670a1b (diff)
downloadaports-ce4ebf229c1bb1cdc7341b3fe15af4c8a20caa39.tar.bz2
aports-ce4ebf229c1bb1cdc7341b3fe15af4c8a20caa39.tar.xz
community/x2goserver: moved from testing
Diffstat (limited to 'community/x2goserver/x2goserver.initd')
-rw-r--r--community/x2goserver/x2goserver.initd23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/x2goserver/x2goserver.initd b/community/x2goserver/x2goserver.initd
new file mode 100644
index 0000000000..2ae724797e
--- /dev/null
+++ b/community/x2goserver/x2goserver.initd
@@ -0,0 +1,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 $?
+}
+