]> arthur.barton.de Git - netdata.git/blobdiff - system/netdata-openrc.in
fail2bain plugin: "Currently In Jail" chart renamed
[netdata.git] / system / netdata-openrc.in
old mode 100755 (executable)
new mode 100644 (file)
index f599550..5580836
@@ -1,4 +1,4 @@
-#!/sbin/runscript
+#!/sbin/openrc-run
 
 # The user netdata is configured to run as.
 # If you edit its configuration file to set a different
@@ -25,8 +25,9 @@ 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}"
-start_stop_daemon_args="-u ${NETDATA_OWNER}"
+command_args="-P ${pidfile} ${NETDATA_EXTRA_ARGS}"
+# start_stop_daemon_args="-u ${NETDATA_OWNER}"
+start_stop_daemon_args=""
 
 depend() {
        use logger