summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2018-01-20 18:38:00 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2018-01-20 18:38:00 +0200
commit9baa3818d83af14277801debde53bed39c7efd72 (patch)
tree0405aea7acfb47188a9ef9f558c405f202be9043 /installer
parent8f30f43ec80a5d8dc7245c8abb39334e7ce5abae (diff)
check for apps.plugin only check it is installed
Diffstat (limited to 'installer')
-rw-r--r--installer/functions.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/installer/functions.sh b/installer/functions.sh
index 5116daaef8..21859e72e8 100644
--- a/installer/functions.sh
+++ b/installer/functions.sh
@@ -506,10 +506,20 @@ install_netdata_service() {
if [ "${UID}" -eq 0 ]
then
- if [ "${uname}" = "FreeBSD" ]
+ if [ "${uname}" = "Darwin" ]
then
+
+ echo >&2 "hm... I don't know how to install a startup script for MacOS X"
+ return 1
+
+ elif [ "${uname}" = "FreeBSD" ]
+ then
+
run cp system/netdata-freebsd /etc/rc.d/netdata && \
+ NETDATA_START_CMD="service netdata start" && \
+ NETDATA_STOP_CMD="service netdata stop" && \
return 0
+
elif issystemd
then
# systemd is running on this system