diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:23 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:44 +0000 |
commit | 836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch) | |
tree | 1604da8f482d02effa033c94a84be42bc0c848c3 /system/lsb/init.d | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip |
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'system/lsb/init.d')
-rw-r--r-- | system/lsb/init.d/netdata.in | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/system/lsb/init.d/netdata.in b/system/lsb/init.d/netdata.in index e429ad1c9..2c6ac7f43 100644 --- a/system/lsb/init.d/netdata.in +++ b/system/lsb/init.d/netdata.in @@ -47,18 +47,24 @@ service_start() { chown @netdata_user_POST@:@netdata_user_POST@ $PIDFILE_PATH - log_daemon_msg "Starting real-time performance monitoring" "netdata" + log_success_msg "Starting real-time performance monitoring" start_daemon -p $PIDFILE $DAEMON_PATH/$DAEMON $DAEMONOPTS RETVAL=$? - log_end_msg $RETVAL + case "${RETVAL}" in + 0) log_success_msg "Started real-time performance monitoring" ;; + *) log_error_msg "Failed to start real-time performance monitoring" ;; + esac return $RETVAL } service_stop() { - log_daemon_msg "Stopping real-time performance monitoring" "netdata" + log_success_msg "Stopping real-time performance monitoring" killproc -p ${PIDFILE} $DAEMON_PATH/$DAEMON RETVAL=$? - log_end_msg $RETVAL + case "${RETVAL}" in + 0) log_success_msg "Stopped real-time performance monitoring" ;; + *) log_error_msg "Failed to stop real-time performance monitoring" ;; + esac if [ $RETVAL -eq 0 ]; then rm -f ${PIDFILE} @@ -77,7 +83,7 @@ condrestart() { } service_status() { - status_of_proc -p $PIDFILE $DAEMON_PATH/$DAEMON netdata + pidofproc -p $PIDFILE $DAEMON_PATH/$DAEMON } |