summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-06-20 10:07:11 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-06-20 10:13:14 +0200
commit660b1b7fb76f13b3ef2c6051cd1355c61b0d9253 (patch)
tree978e8b4823b6d95547f8195d021ed9e08ec2c02a
parent86320146407ecee208ca03428a7424412f272024 (diff)
downloadgpsdate-660b1b7fb76f13b3ef2c6051cd1355c61b0d9253.tar.gz
gpsdate-660b1b7fb76f13b3ef2c6051cd1355c61b0d9253.tar.bz2
gpsdate-660b1b7fb76f13b3ef2c6051cd1355c61b0d9253.tar.xz
gpsdate-660b1b7fb76f13b3ef2c6051cd1355c61b0d9253.zip
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.
-rwxr-xr-xgpsdate.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsdate.init b/gpsdate.init
index 88317ec..9f8e7f4 100755
--- a/gpsdate.init
+++ b/gpsdate.init
@@ -59,8 +59,8 @@ case "$1" in
force-reload)
if [ $run_gpsdate = 0 ]; then exit 0; fi
echo "Restarting ${NAME}"
- stop
- start
+ $0 stop
+ $0 start
;;
*)