From: Matthias Fischer <matthias.fischer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] vnstat 2.6: Added status section for initscript
Date: Sat, 11 Apr 2020 19:08:38 +0200 [thread overview]
Message-ID: <20200411170838.25624-1-matthias.fischer@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 722 bytes --]
Signed-off-by: Matthias Fischer <matthias.fischer(a)ipfire.org>
---
src/initscripts/system/vnstat | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/initscripts/system/vnstat b/src/initscripts/system/vnstat
index 999307d99..c1bb2942a 100755
--- a/src/initscripts/system/vnstat
+++ b/src/initscripts/system/vnstat
@@ -39,6 +39,10 @@ case "$1" in
${0} start
;;
+ status)
+ statusproc /usr/sbin/vnstatd
+ ;;
+
backup)
# Backup all data if ramdisk is used
if mountpoint "${RRDLOG}" &>/dev/null; then
@@ -47,7 +51,7 @@ case "$1" in
;;
*)
- echo "Usage: $0 {start|stop|restart|backup}"
+ echo "Usage: $0 {start|stop|restart|status|backup}"
exit 1
;;
esac
--
2.18.0
reply other threads:[~2020-04-11 17:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200411170838.25624-1-matthias.fischer@ipfire.org \
--to=matthias.fischer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox