summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-07-24 18:37:35 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-24 18:54:36 +0200
commitcd7b77ef311f317aac7a067308a94e46811a20f2 (patch)
tree4fd6c93045af8c6dc654a86e643dd2605b29bc4b
parent81690ca78e816f86e0da11bbe8cba725fa1a634d (diff)
downloadgpsdate-cd7b77ef311f317aac7a067308a94e46811a20f2.tar.gz
gpsdate-cd7b77ef311f317aac7a067308a94e46811a20f2.tar.bz2
gpsdate-cd7b77ef311f317aac7a067308a94e46811a20f2.tar.xz
gpsdate-cd7b77ef311f317aac7a067308a94e46811a20f2.zip
gpsdate.service: Install correctly when service is enabled
systemctl enable requires an Install section with some target to know how to set up correctly the service.
-rw-r--r--gpsdate.service3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsdate.service b/gpsdate.service
index 869f076..da4cb80 100644
--- a/gpsdate.service
+++ b/gpsdate.service
@@ -5,3 +5,6 @@ Description=Set time based on GPS
Type=simple
EnvironmentFile=/etc/default/gpsdate
ExecStart=/usr/sbin/gpsdate --no-detach ${GPSDATE_HOST} ${GPSDATE_PORT}
+
+[Install]
+WantedBy=multi-user.target