blob: 87051da9069ec252b53da8219fb6c94f0a6ee5f7 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From 3ade837f64de0cfe2aed5bc52f7919760f350531 Mon Sep 17 00:00:00 2001
2From: Wenzong Fan <wenzong.fan@windriver.com>
3Date: Fri, 7 Mar 2014 00:57:12 -0500
4Subject: [PATCH] edac: add restart to initscript
5
6Upstream-Status: Pending
7
8Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
9---
10 src/etc/edac.init.in | 6 +++++-
11 1 file changed, 5 insertions(+), 1 deletion(-)
12
13diff --git a/src/etc/edac.init.in b/src/etc/edac.init.in
14index adf76ee..007a519 100644
15--- a/src/etc/edac.init.in
16+++ b/src/etc/edac.init.in
17@@ -155,8 +155,12 @@ case "$1" in
18 status)
19 service_status
20 ;;
21+ restart)
22+ service_stop
23+ service_start
24+ ;;
25 *)
26- COMMANDS="start|stop|status"
27+ COMMANDS="start|stop|status|restart"
28 echo "Usage: $0 {${COMMANDS}}"
29 exit 2
30 ;;
31--
321.7.9.5
33