Skip to content

Commit

Permalink
fixed system/netdata-init-d.in script to suppress status output prior…
Browse files Browse the repository at this point in the history
… stop/start, relates to #1381
  • Loading branch information
variia committed Dec 17, 2016
1 parent 70abd30 commit 74a6727
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions system/netdata-init-d.in
Expand Up @@ -58,13 +58,18 @@ service_status()
status -p ${PIDFILE} $DAEMON_PATH/$DAEMON
}

service_status_quiet()
{
status -p ${PIDFILE} $DAEMON_PATH/$DAEMON >/dev/null 2>&1
}

case "$1" in
start)
service_status && exit 0
service_status_quiet && exit 0
service_start
;;
stop)
service_status || exit 0
service_status_quiet || exit 0
service_stop
;;
restart)
Expand Down

0 comments on commit 74a6727

Please sign in to comment.