From be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 04:57:58 +0200 Subject: Adding upstream version 1.44.3. Signed-off-by: Daniel Baumann --- system/runit/run.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 system/runit/run.in (limited to 'system/runit') diff --git a/system/runit/run.in b/system/runit/run.in new file mode 100644 index 00000000..d7f39fb6 --- /dev/null +++ b/system/runit/run.in @@ -0,0 +1,12 @@ +#!/bin/sh + +piddir="@localstatedir_POST@/run/netdata/netdata.pid" +pidfile="${piddir}/netdata.pid" + +command="@sbindir_POST@/netdata" +command_args="-P ${pidfile} -D" + +[ ! -d "${piddir}" ] && mkdir -p "${piddir}" +chown -R @netdata_user_POST@ "${piddir}" + +exec ${command} ${command_args} -- cgit v1.2.3