systemd: Add a simple service file gpsdate

Expect that it forks and that a /etc/default/gpsdate file does
exist.
This commit is contained in:
Holger Hans Peter Freyther 2015-02-14 15:36:46 +01:00
parent 019d2535b6
commit 2326eee789
1 changed files with 7 additions and 0 deletions

7
gpsdate.service Normal file
View File

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