Commit Graph

6 Commits

Author SHA1 Message Date
Harald Welte 81690ca78e gpsdate.init: Use GPSDATE_{HOST,PORT} from /etc/default/gpsdate
so far only the sytemd service file used those variables, but not the
init script.  Fix that.
2016-08-01 14:00:23 +02:00
Holger Hans Peter Freyther 0db898e4b8 gpsdate.init: Make the killing of gpsdate work on the target
When the initscript is called gpsdate it might kill itself before
it has a way to start the new gpsdate process. Use pidof with the
full path to the gpsdate binary to avoid this.
2013-06-20 11:17:53 +02:00
Holger Hans Peter Freyther f07a52709f gpsdate.init: Implement stop using killall for now
The easiest way would be to use start-stop-daemon and let it
daemonize the process and create a pid file. Because all of this
is not there and the application unconditionally daemonizes itself
I can just use killall to stop it.
2013-06-20 10:13:18 +02:00
Holger Hans Peter Freyther 660b1b7fb7 gpsdate.init: Fix calling stop and start in the initscript
Now a stop/start could result in having two gpsdate processes
running. They luckily will die once the time has been set.
2013-06-20 10:13:14 +02:00
Harald Welte 8632014640 update init script defaults for update-rc.d 2013-04-10 16:09:58 +02:00
Harald Welte 097f7dea48 add example init script for gpsdate 2013-04-10 13:03:22 +02:00