1From 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
6Implement the sub-command status.
7
8Upstream-Status: Pending
9Signed-off-by: Kai Kang <kai.kang@windriver.com>
10---
11 atop.init | 3 +++
12 1 file changed, 3 insertions(+)
13
14diff --git a/atop.init b/atop.init
15index e6e11dc..e7b226d 100755
16--- 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)
35