Commit Graph

5 Commits

Author SHA1 Message Date
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