aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ffalarms/atd-over-fso/atd-startup-restart.patch
blob: adea0e1178694800688840b34beb922e35ae0cf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- dist/etc/init.d/atd-orig	2009-03-29 14:20:09.000000000 +0200
+++ dist/etc/init.d/atd	2009-03-29 14:37:31.000000000 +0200
@@ -20,9 +20,13 @@
         rm -f /var/spool/at/trigger
         echo "."
         ;;
+  restart)
+        $0 stop
+        $0 start
+        ;;
 
   *)
-        echo "Usage: /etc/init.d/atd {start|stop}"
+        echo "Usage: /etc/init.d/atd {start|stop|restart}"
         exit 1
 esac