[osrm] 01/02: Add systemd service
Christopher Baines
cbaines-guest at moszumanska.debian.org
Sat Jul 18 12:24:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
cbaines-guest pushed a commit to branch master
in repository osrm.
commit 447191255a8351bc842e8d15e40b5223ebec6ddb
Author: Christopher Baines <mail at cbaines.net>
Date: Sat Jul 18 12:50:02 2015 +0100
Add systemd service
Adjust debian/rules accordingly.
---
debian/osrm.service | 11 +++++++++++
debian/rules | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/debian/osrm.service b/debian/osrm.service
new file mode 100644
index 0000000..92f421e
--- /dev/null
+++ b/debian/osrm.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Open Source Routing Machine (OSRM)
+
+[Service]
+User=osrm
+Group=osrm
+ExecStart=/usr/bin/osrm-routed /var/lib/osrm/planet-latest.osrm \
+ --config /etc/osrm/server.ini
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/rules b/debian/rules
index f8621d4..c78f702 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
export DEB_BUILD_HARDENING=1
%:
- dh $@ --parallel
+ dh $@ --parallel --with=systemd
override_dh_clean:
dh_clean util/fingerprint_impl.hpp util/git_sha.cpp
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osrm.git
More information about the Pkg-grass-devel
mailing list