Merge lp:~tohyland/endroid/systemd into lp:endroid

Proposed by Tomas Hyland
Status: Merged
Approved by: Matthew Hall
Approved revision: 106
Merged at revision: 105
Proposed branch: lp:~tohyland/endroid/systemd
Merge into: lp:endroid
Diff against target: 62 lines (+22/-13)
4 files modified
debian/changelog (+6/-0)
debian/endroid.install (+1/-1)
etc/init/endroid.conf (+0/-12)
etc/init/endroid.service (+15/-0)
To merge this branch: bzr merge lp:~tohyland/endroid/systemd
Reviewer Review Type Date Requested Status
Matthew Hall Approve
Review via email: mp+346406@code.launchpad.net

Commit message

New unit file for Endroid systemd initialisation

Description of the change

Upgrading from Ubuntu 14.04 (Trusty) to 16.04 (Xenial)means that Ubuntu's init system has moved from Upstart to Systemd. This change provides a systemd unit file to support this change. This file should be installed at /etc/systemd/system .

To post a comment you must log in.
Revision history for this message
Tomas Hyland (tohyland) wrote :

(Ignore the previous merge request I made. This should be the correct diff)

Revision history for this message
Matthew Hall (matt.hall) wrote :

Create a new version (1.4.9) in debian/changelog (with the distribution field set to 'xenial' rather than 'trusty'.)

Revision history for this message
Tomas Hyland (tohyland) :
lp:~tohyland/endroid/systemd updated
106. By Tomas Hyland <email address hidden>

Mark-ups for systemd init changes

Revision history for this message
Matthew Hall (matt.hall) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2016-01-14 16:17:18 +0000
3+++ debian/changelog 2018-05-21 15:32:50 +0000
4@@ -1,3 +1,9 @@
5+endroid (1.4.9) xenial; urgency=medium
6+
7+ * Change start up mechanism from upstart to Systemd
8+
9+ -- Tomas Hyland <tohyland@ensoft-linux3.cisco.com> Mon, 21 May 2018 16:29:15 +0100
10+
11 endroid (1.4.8) trusty; urgency=medium
12
13 * Fix bug in DB update function
14
15=== modified file 'debian/endroid.install'
16--- debian/endroid.install 2016-01-14 15:16:05 +0000
17+++ debian/endroid.install 2018-05-21 15:32:50 +0000
18@@ -1,6 +1,6 @@
19 etc/endroid.conf etc/endroid/
20 etc/endroid.conf usr/share/doc/endroid/examples/
21-etc/init/endroid.conf etc/init/
22+etc/init/endroid.service etc/systemd/system/
23 bin/endroid usr/bin/
24 bin/endroid_remote usr/bin/
25 bin/spelunk_hi5s usr/sbin/
26
27=== removed file 'etc/init/endroid.conf'
28--- etc/init/endroid.conf 2016-01-13 18:09:42 +0000
29+++ etc/init/endroid.conf 1970-01-01 00:00:00 +0000
30@@ -1,12 +0,0 @@
31-description "EnDroid XMPP bot"
32-author "Ensoft Limited"
33-
34-exec /usr/bin/endroid --logtwisted -L /var/log/endroid.log --config /etc/endroid/endroid.conf
35-start on net-device-up
36-stop on stopping network
37-stop on starting shutdown
38-
39-# Respawn if endroid exits
40-respawn
41-# Only respawn max 10 times in 5s period, otherwise fail
42-respawn limit 10 5
43
44=== added file 'etc/init/endroid.service'
45--- etc/init/endroid.service 1970-01-01 00:00:00 +0000
46+++ etc/init/endroid.service 2018-05-21 15:32:50 +0000
47@@ -0,0 +1,15 @@
48+[Unit]
49+Description=Endroid XMPP bot Author Ensoft Limited
50+After=networking.service
51+
52+# Only respawn a max 10 times in a 5s period, otherwise fail.
53+StartLimitInterval=5
54+StartLimitBurst=10
55+
56+[Service]
57+Environment=ENDROID_PYTHON=<set to python location>
58+
59+ExecStart=/usr/bin/endroid --logtwisted -L /var/log/endroid.log --config /etc/endroid/endroid.conf
60+
61+# Respawn if endroid exits
62+Restart=on-failure

Subscribers

People subscribed via source and target branches