hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
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
From bdd068873ed0979027c21773939bdb18046a8756 Mon Sep 17 00:00:00 2001
From: Kai Kang <kai.kang@windriver.com>
Date: Wed, 6 Feb 2019 13:58:04 +0000
Subject: [PATCH] sysvinit: Implement status
 
Implement the sub-command status.
 
Upstream-Status: Pending
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 atop.init | 3 +++
 1 file changed, 3 insertions(+)
 
diff --git a/atop.init b/atop.init
index e6e11dc..e7b226d 100755
--- a/atop.init
+++ b/atop.init
@@ -18,6 +18,8 @@
 # Check existance of binaries 
 [ -f /usr/bin/atop ] || exit 0
 
+[ -f /etc/init.d/functions ] && . /etc/init.d/functions
+
 PIDFILE=/var/run/atop.pid
 RETVAL=0
 
@@ -63,6 +65,7 @@ case "$1" in
     ;;
 
   status)
+    status atop
     ;;
 
   reload)