Package: netdata-core
Version: 1.34.1-1+b1
Severity: normal
Tags: patch
Init: OpenRC (via /run/openrc), PID 1: init
> ls -l /run/netdata.pid
ls: cannot access '/run/netdata.pid': No such file or directory
> sudo service netdata start
Starting the netdata daemon...2022-06-06 12:09:40: netdata INFO : MAIN
: CONFIG: cannot load cloud config
'/var/lib/netdata/cloud.d/cloud.conf'. Running with internal defaults.
done.
> sudo service netdata status
netdata is running.
> sudo service netdata stop
Stopping the netdata daemon...start-stop-daemon: matching only on
non-root pidfile /run/netdata.pid is insecure
failed (/usr/sbin/netdata died: process 12267 not running; or permission
denied).
> ls -l /run/netdata.pid
-rw-r--r-- 1 netdata netdata 6 Jun 6 12:09 /run/netdata.pid
> pgrep -l netdata
12267 netdata
12269 netdata
Thanks,
Gian Piero.
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.17.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: OpenRC (via /run/openrc), PID 1: init
LSM: AppArmor: enabled
Versions of packages netdata-core depends on:
ii init-system-helpers 1.63
ii libc6 2.33-7
ii libcap2 1:2.44-1
ii libcap2-bin 1:2.44-1
ii libjson-c5 0.16-1
ii libjudydebian1 1.0.5-5+b2
ii liblz4-1 1.9.3-2
ii libmnl0 1.0.4-3
ii libnetfilter-acct1 1.0.3-3
ii libssl3 3.0.3-6
ii libuuid1 2.38-4
ii libuv1 1.44.1-2
ii lsb-base 11.2
ii zlib1g 1:1.2.11.dfsg-4
Versions of packages netdata-core recommends:
ii curl 7.83.1-1+b1
Versions of packages netdata-core suggests:
ii apcupsd 3.14.14-3.1
ii iproute2 5.17.0-2
ii iw 5.16-1
ii lm-sensors 1:3.6.0-7
pn nc <none>
-- Configuration Files:
/etc/netdata/netdata.conf changed [not included]
-- no debconf information
--- a/netdata 2022-04-15 22:03:48.000000000 +0200
+++ b/netdata 2022-06-06 12:23:43.413715597 +0200
@@ -46,8 +46,8 @@
log_action_begin_msg "Starting $DESC"
- if start-stop-daemon --start --quiet --pidfile $PIDFILE --startas
$DAEMON --test; then
- if start-stop-daemon --start --quiet --pidfile $PIDFILE
--startas $DAEMON -- $DAEMON_ARGS; then
+ if start-stop-daemon --start --quiet --pidfile $PIDFILE --name $NAME
--startas $DAEMON --test; then
+ if start-stop-daemon --start --quiet --pidfile $PIDFILE --name
$NAME --startas $DAEMON -- $DAEMON_ARGS; then
log_action_end_msg 0
else
log_action_end_msg 1
@@ -65,7 +65,7 @@
exit 0
fi
- if start-stop-daemon --stop --quiet --pidfile $PIDFILE
--retry=$STOP_SCHEDULE; then
+ if start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME
--retry=$STOP_SCHEDULE; then
log_action_end_msg 0
else
log_action_end_msg 1 "$DAEMON died: process $pid not running;
or permission denied"