summaryrefslogtreecommitdiff
path: root/recipes/ffalarms/atd-over-fso/init.d-atd-restart.patch
blob: 11742d99377bfeddedee4bc90eb0f2878d8f0da6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- S97atd-orig	2009-03-29 11:59:02.000000000 +0200
+++ S97atd	2009-03-29 12:03:07.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