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:
Pau Espin 2017-07-24 18:37:35 +02:00 committed by Harald Welte
parent 81690ca78e
commit cd7b77ef31
1 changed files with 3 additions and 0 deletions

View File

@ -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