summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph <ckluente@thoughtworks.com>2016-01-07 17:17:52 +0100
committerRuben Pollan <meskio@sindominio.net>2016-01-07 18:02:43 +0100
commitf9ab2d7c5d2a652e1ffde1f994a3344d5ee657f2 (patch)
treeb0291a6f4c26e1245477ba299eaac6aa21784dad
parentc944cb877313fec9841c731b1ce4c4a16fb4d5f0 (diff)
add service file for starting via systemd
-rw-r--r--pkg/leap-mx.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/leap-mx.service b/pkg/leap-mx.service
new file mode 100644
index 0000000..5852ee8
--- /dev/null
+++ b/pkg/leap-mx.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Leap MX
+Before=postfix.service
+
+[Service]
+ExecStart=/usr/bin/python /usr/bin/twistd -n --rundir=/var/lib/leap_mx/ --python=/usr/share/app/mx.tac --syslog --prefix=leap-mx --pidfile=/tmp/leap-mx.pid
+User=leap-mx
+
+[Install]
+WantedBy=multi-user.target