summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-02-14 15:36:46 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-02-14 15:36:46 +0100
commit2326eee7898f9a8484d92d31cb16fca14db4a874 (patch)
treef1c5e85c037a1c9df0b77980bcd962f9ae8cd12c
parent019d2535b60d574c22513726024e1742e6dc4909 (diff)
downloadgpsdate-2326eee7898f9a8484d92d31cb16fca14db4a874.tar.gz
gpsdate-2326eee7898f9a8484d92d31cb16fca14db4a874.tar.bz2
gpsdate-2326eee7898f9a8484d92d31cb16fca14db4a874.tar.xz
gpsdate-2326eee7898f9a8484d92d31cb16fca14db4a874.zip
systemd: Add a simple service file gpsdate
Expect that it forks and that a /etc/default/gpsdate file does exist.
-rw-r--r--gpsdate.service7
1 files changed, 7 insertions, 0 deletions
diff --git a/gpsdate.service b/gpsdate.service
new file mode 100644
index 0000000..d4a26b4
--- /dev/null
+++ b/gpsdate.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Set time based on GPS
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/default/gpsdate
+ExecStart=/usr/sbin/gpsdate ${GPSDATE_HOST} ${GPSDATE_PORT}