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
=== modified file 'debian/changelog'
--- debian/changelog 2016-01-14 16:17:18 +0000
+++ debian/changelog 2018-05-21 15:32:50 +0000
@@ -1,3 +1,9 @@
1endroid (1.4.9) xenial; urgency=medium
2
3 * Change start up mechanism from upstart to Systemd
4
5 -- Tomas Hyland <tohyland@ensoft-linux3.cisco.com> Mon, 21 May 2018 16:29:15 +0100
6
1endroid (1.4.8) trusty; urgency=medium7endroid (1.4.8) trusty; urgency=medium
28
3 * Fix bug in DB update function9 * Fix bug in DB update function
410
=== modified file 'debian/endroid.install'
--- debian/endroid.install 2016-01-14 15:16:05 +0000
+++ debian/endroid.install 2018-05-21 15:32:50 +0000
@@ -1,6 +1,6 @@
1etc/endroid.conf etc/endroid/1etc/endroid.conf etc/endroid/
2etc/endroid.conf usr/share/doc/endroid/examples/2etc/endroid.conf usr/share/doc/endroid/examples/
3etc/init/endroid.conf etc/init/3etc/init/endroid.service etc/systemd/system/
4bin/endroid usr/bin/4bin/endroid usr/bin/
5bin/endroid_remote usr/bin/5bin/endroid_remote usr/bin/
6bin/spelunk_hi5s usr/sbin/6bin/spelunk_hi5s usr/sbin/
77
=== removed file 'etc/init/endroid.conf'
--- etc/init/endroid.conf 2016-01-13 18:09:42 +0000
+++ etc/init/endroid.conf 1970-01-01 00:00:00 +0000
@@ -1,12 +0,0 @@
1description "EnDroid XMPP bot"
2author "Ensoft Limited"
3
4exec /usr/bin/endroid --logtwisted -L /var/log/endroid.log --config /etc/endroid/endroid.conf
5start on net-device-up
6stop on stopping network
7stop on starting shutdown
8
9# Respawn if endroid exits
10respawn
11# Only respawn max 10 times in 5s period, otherwise fail
12respawn limit 10 5
130
=== added file 'etc/init/endroid.service'
--- etc/init/endroid.service 1970-01-01 00:00:00 +0000
+++ etc/init/endroid.service 2018-05-21 15:32:50 +0000
@@ -0,0 +1,15 @@
1[Unit]
2Description=Endroid XMPP bot Author Ensoft Limited
3After=networking.service
4
5# Only respawn a max 10 times in a 5s period, otherwise fail.
6StartLimitInterval=5
7StartLimitBurst=10
8
9[Service]
10Environment=ENDROID_PYTHON=<set to python location>
11
12ExecStart=/usr/bin/endroid --logtwisted -L /var/log/endroid.log --config /etc/endroid/endroid.conf
13
14# Respawn if endroid exits
15Restart=on-failure

Subscribers

People subscribed via source and target branches