Skip to content

Commit

Permalink
Merge pull request spotify#93 from smstone/add-systemd-support
Browse files Browse the repository at this point in the history
Add support for running ffwd under systemd
dmichel1 authored Nov 6, 2018
2 parents 013b2b0 + d4e58bd commit 6e5e558
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/control.in
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ Priority: extra
Maintainer: IO <[email protected]>
Build-Depends:
debhelper,
dh-systemd,
default-jdk (>= 1.8),
maven3 | maven (>= 3)
Standards-Version: 3.9.1
11 changes: 11 additions & 0 deletions debian/ffwd.service.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=fast-forward monitoring agent
Documentation=https://github.com/spotify/ffwd

[Service]
ExecStart=/usr/bin/ffwd-RELEASE /etc/ffwd/ffwd-RELEASE.yaml
ExecStopPost=/bin/sleep 10
Restart=on-failure

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion debian/rules.in
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ FFWD=$(BUILD)/ffwd-RELEASE
DEB_VERSION:=$(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')

%:
dh $@
dh $@ --with=systemd

override_dh_auto_clean:
rm -rf $(BUILD)

0 comments on commit 6e5e558

Please sign in to comment.