forked from sysmocom/gpsdate
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.
This commit is contained in:
parent
81690ca78e
commit
cd7b77ef31
|
@ -5,3 +5,6 @@ Description=Set time based on GPS
|
||||||
Type=simple
|
Type=simple
|
||||||
EnvironmentFile=/etc/default/gpsdate
|
EnvironmentFile=/etc/default/gpsdate
|
||||||
ExecStart=/usr/sbin/gpsdate --no-detach ${GPSDATE_HOST} ${GPSDATE_PORT}
|
ExecStart=/usr/sbin/gpsdate --no-detach ${GPSDATE_HOST} ${GPSDATE_PORT}
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue