blob: 1145a24934e7088e8f993a34ee6ea68fb650f1d3 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From bdd068873ed0979027c21773939bdb18046a8756 Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Wed, 6 Feb 2019 13:58:04 +0000
4Subject: [PATCH] sysvinit: Implement status
5
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006Implement the sub-command status.
7
8Upstream-Status: Pending
Patrick Williamsb48b7b42016-08-17 15:04:38 -05009Signed-off-by: Kai Kang <kai.kang@windriver.com>
10---
Brad Bishop19323692019-04-05 15:28:33 -040011 atop.init | 3 +++
12 1 file changed, 3 insertions(+)
13
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014diff --git a/atop.init b/atop.init
Brad Bishop19323692019-04-05 15:28:33 -040015index e6e11dc..e7b226d 100755
Patrick Williamsb48b7b42016-08-17 15:04:38 -050016--- a/atop.init
17+++ b/atop.init
18@@ -18,6 +18,8 @@
19 # Check existance of binaries
20 [ -f /usr/bin/atop ] || exit 0
21
22+[ -f /etc/init.d/functions ] && . /etc/init.d/functions
23+
24 PIDFILE=/var/run/atop.pid
25 RETVAL=0
26
27@@ -63,6 +65,7 @@ case "$1" in
28 ;;
29
30 status)
31+ status atop
32 ;;
33
34 reload)