Skip to content

Commit

Permalink
Add support for running ffwd under systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Stone committed Oct 22, 2018
1 parent 293ec31 commit d4e58bd
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand Down
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
Expand Up @@ -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)
Expand Down

0 comments on commit d4e58bd

Please sign in to comment.