]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
added support for "stop"
authorThibault Godouet <yo8192@users.noreply.github.com>
Tue, 10 Jul 2001 14:50:09 +0000 (14:50 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Tue, 10 Jul 2001 14:50:09 +0000 (14:50 +0000)
script/fcron.sh

index 757a3c2cd01bc2cb2836e3674ffb00100e1569d3..1f994a919254de78139d1fd28853b8b73cc98e5f 100755 (executable)
@@ -7,8 +7,11 @@ case "$1" in
   start)
     $SBIN/fcron -b && echo -n " fcron"
     ;;
+  stop)
+    killall -TERM fcron
+    ;;
   *)
-    echo "Usage: fcron start"
+    echo "Usage: fcron start|stop"
     exit 1
     ;;
 esac
\ No newline at end of file