From 3827569c309284df52f5c75e48d78affdff2f0c0 Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sat, 20 Jan 2018 18:14:52 +0200 Subject: added freebsd init file --- installer/functions.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/functions.sh b/installer/functions.sh index 2eeb92c8fc..5116daaef8 100644 --- a/installer/functions.sh +++ b/installer/functions.sh @@ -502,9 +502,15 @@ NETDATA_START_CMD="netdata" NETDATA_STOP_CMD="killall netdata" install_netdata_service() { + local uname="$(uname 2>/dev/null)" + if [ "${UID}" -eq 0 ] then - if issystemd + if [ "${uname}" = "FreeBSD" ] + then + run cp system/netdata-freebsd /etc/rc.d/netdata && \ + return 0 + elif issystemd then # systemd is running on this system NETDATA_START_CMD="systemctl start netdata" -- cgit v1.2.3