summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2016-04-03 00:08:55 +0300
committerAlon Bar-Lev <alon.barlev@gmail.com>2016-04-03 00:13:10 +0300
commit458de8ae0d3c3da5626a30a2077a5116e09254cb (patch)
tree799521d581527672f7f33e97d1835dcfa140472a /system
parent8ee3cdc8ef057a9070712fd921d6a0cee01f51d5 (diff)
build: revert pid to live within /var/run/netdata
as pid processing is non standard fixing mechanism is out of scope. fix C code to follow the autoconf location. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Diffstat (limited to 'system')
-rwxr-xr-xsystem/netdata-openrc2
-rw-r--r--system/netdata.service.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/netdata-openrc b/system/netdata-openrc
index 756a521bd9..202db64c0b 100755
--- a/system/netdata-openrc
+++ b/system/netdata-openrc
@@ -26,7 +26,7 @@ NETDATA_FORCE_EXIT=${NETDATA_FORCE_EXIT-0}
NETDATA_START_AFTER_SERVICES="${NETDATA_START_AFTER_SERVICES-apache2 squid nginx mysql named opensips upsd hostapd postfix lm_sensors}"
extra_started_commands="getconf"
-pidfile="/var/run/netdata.pid"
+pidfile="/var/run/netdata/netdata.pid"
command="${NETDATA_INSTALL_PATH}/usr/sbin/netdata"
command_background="yes"
diff --git a/system/netdata.service.in b/system/netdata.service.in
index 094670ffc3..266bc65b1c 100644
--- a/system/netdata.service.in
+++ b/system/netdata.service.in
@@ -7,7 +7,7 @@ Type=forking
WorkingDirectory=/tmp
User=root
Group=root
-PIDFile=@localstatedir_POST@/run/netdata.pid
+PIDFile=@localstatedir_POST@/run/netdata/netdata.pid
ExecStart=@sbindir_POST@/netdata
ExecStop=/bin/kill -SIGTERM $MAINPID
TimeoutStopSec=30