Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | From 3ade837f64de0cfe2aed5bc52f7919760f350531 Mon Sep 17 00:00:00 2001 |
| 2 | From: Wenzong Fan <wenzong.fan@windriver.com> |
| 3 | Date: Fri, 7 Mar 2014 00:57:12 -0500 |
| 4 | Subject: [PATCH] edac: add restart to initscript |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-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 | |
| 13 | diff --git a/src/etc/edac.init.in b/src/etc/edac.init.in |
| 14 | index 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 | -- |
| 32 | 1.7.9.5 |
| 33 | |