Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | Implement the sub-command status. |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 6 | --- |
| 7 | diff --git a/atop.init b/atop.init |
| 8 | index 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) |