blob: 5994d3e08e3ac7a523cbbf87c8c331caed0e29c5 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001Implement the sub-command status.
2
3Upstream-Status: Pending
4
5Signed-off-by: Kai Kang <kai.kang@windriver.com>
6---
7diff --git a/atop.init b/atop.init
8index 108bdc5..9f89fad 100755
9--- a/atop.init
10+++ b/atop.init
11@@ -18,6 +18,8 @@
12 # Check existance of binaries
13 [ -f /usr/bin/atop ] || exit 0
14
15+[ -f /etc/init.d/functions ] && . /etc/init.d/functions
16+
17 PIDFILE=/var/run/atop.pid
18 RETVAL=0
19
20@@ -63,6 +65,7 @@ case "$1" in
21 ;;
22
23 status)
24+ status atop
25 ;;
26
27 reload)