summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2016-05-24 00:28:08 +0300
committerCosta Tsaousis <costa@tsaousis.gr>2016-05-24 00:28:08 +0300
commit754a6de78959499044fa3a8b24a2ba4b7de6dd48 (patch)
treed6232877976d0cbb17df9d6e381b3ece04161069 /system
parent055a553e17e1cf90ae6dcf6b6be8f71a3a46d874 (diff)
parent9ef0d64956628cf89d2af1c1c9950a7338030335 (diff)
Merge pull request #421 from simonnagl/feature/command_line
Command line: Follow IEEE Std 1003.1, 2013 Edition
Diffstat (limited to 'system')
-rwxr-xr-xsystem/netdata-init-d.in2
-rwxr-xr-xsystem/netdata-openrc.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/netdata-init-d.in b/system/netdata-init-d.in
index 3e82d0d366..07d5a19ecd 100755
--- a/system/netdata-init-d.in
+++ b/system/netdata-init-d.in
@@ -14,7 +14,7 @@
DAEMON="netdata"
DAEMON_PATH=@sbindir_POST@
PIDFILE=@localstatedir_POST@/$DAEMON.pid
-DAEMONOPTS="-pidfile $PIDFILE"
+DAEMONOPTS="-P $PIDFILE"
STOP_TIMEOUT="10"
service_start()
diff --git a/system/netdata-openrc.in b/system/netdata-openrc.in
index 299db5699f..3d5f2cdcc5 100755
--- a/system/netdata-openrc.in
+++ b/system/netdata-openrc.in
@@ -25,7 +25,7 @@ extra_started_commands="getconf"
pidfile="/run/netdata.pid"
command="${NETDATA_INSTALL_PATH}/usr/sbin/netdata"
command_background="yes"
-command_args="-pidfile ${pidfile} ${NETDATA_EXTRA_ARGS}"
+command_args="-P ${pidfile} ${NETDATA_EXTRA_ARGS}"
# start_stop_daemon_args="-u ${NETDATA_OWNER}"
start_stop_daemon_args=""