aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/irqbalance/irqbalance/irqbalance-Add-status-and-reload-commands.patch
blob: 8591f34c16e4b8fd7439a92a15008e63a954f2da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
From 9a16da2628cc4fddf37fe0368b4f6424270f0b2d Mon Sep 17 00:00:00 2001
From: Yang Shi <yang.shi@windriver.com>
Date: Mon, 26 Aug 2013 10:58:02 -0700
Subject: [PATCH] irqbalance: Add status and reload commands

Add status and reload commands for irqbalanced init script

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Yang Shi <yang.shi@windriver.com>

---
 irqbalance.init | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/irqbalance.init b/irqbalance.init
index d12d62c..f58bf55 100644
--- a/irqbalance.init
+++ b/irqbalance.init
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (c) 2012 Wind River Systems, Inc.
+# Copyright (c) 2013 Wind River Systems, Inc.
 #
 ### BEGIN INIT INFO
 # Provides:             irqbalance
@@ -11,6 +11,8 @@
 # Short-Description:    IRQ allocation daemon
 ### END INIT INFO
 
+. /etc/init.d/functions
+
 case "$1" in
   start)
 	echo -n "Starting irqbalance: "
@@ -22,12 +24,16 @@ case "$1" in
 	start-stop-daemon -K -n irqbalance
 	echo "done"
 	;;
-  restart)
+  restart|reload)
 	$0 stop
 	$0 start
 	;;
+  status)
+	status irqbalance
+	echo "done"
+	;;
   *)
-	echo "Usage: $0 {start | stop | restart}" >&2
+	echo "Usage: $0 {start | stop | restart | reload | status}" >&2
 	exit 1
 	;;
 esac