diff options
author | Ruben Pollan <meskio@sindominio.net> | 2016-01-07 18:01:10 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-01-07 18:01:10 +0100 |
commit | 17830e5fee742dacc021aaf1adc23634f615b047 (patch) | |
tree | 3718693421f9a28d981509e4ef9bad3b5d47816f | |
parent | 6927bcbbff9d31d1b7b3b3b990bebc3eac0aeb2a (diff) | |
parent | 286b588e404307f6821bea7f24e2ab834e337913 (diff) |
Merge branch 'add_sytemd_service' into debian/platform-0.8
-rw-r--r-- | debian/control | 2 | ||||
l--------- | debian/leap-mx.service | 1 | ||||
-rw-r--r-- | pkg/leap-mx.service | 10 |
3 files changed, 12 insertions, 1 deletions
diff --git a/debian/control b/debian/control index 89d8777..d8ae0f2 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Maintainer: drebs <drebs@leap.se> Uploader: Micah Anderson <micah@debian.org> Section: python Priority: optional -Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9) +Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9), dh-systemd Standards-Version: 3.9.6 Package: leap-mx diff --git a/debian/leap-mx.service b/debian/leap-mx.service new file mode 120000 index 0000000..17c747b --- /dev/null +++ b/debian/leap-mx.service @@ -0,0 +1 @@ +../pkg/leap-mx.service
\ No newline at end of file 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 |