diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-05-08 11:16:44 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-05-08 11:16:44 +0300 |
commit | f87ac0fbaee037198730a71985fd57c3e2edf065 (patch) | |
tree | a92862fcdd0773cdc3519352abfc0304cc217652 /system | |
parent | 10f84288ae35bab5070be277eb25e149c5556755 (diff) |
install startup script on MacOS; fixes #3684
Diffstat (limited to 'system')
-rw-r--r-- | system/Makefile.am | 3 | ||||
-rw-r--r-- | system/netdata.plist.in | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/system/Makefile.am b/system/Makefile.am index 255147bad5..991425f9fa 100644 --- a/system/Makefile.am +++ b/system/Makefile.am @@ -9,6 +9,7 @@ CLEANFILES = \ netdata-init-d \ netdata-lsb \ netdata-freebsd \ + netdata.plist \ $(NULL) include $(top_srcdir)/build/subst.inc @@ -22,6 +23,7 @@ nodist_noinst_DATA = \ netdata-init-d \ netdata-lsb \ netdata-freebsd \ + netdata.plist \ $(NULL) dist_noinst_DATA = \ @@ -31,5 +33,6 @@ dist_noinst_DATA = \ netdata-init-d.in \ netdata-lsb.in \ netdata-freebsd.in \ + netdata.plist.in \ netdata.conf \ $(NULL) diff --git a/system/netdata.plist.in b/system/netdata.plist.in new file mode 100644 index 0000000000..fe3f0ac38e --- /dev/null +++ b/system/netdata.plist.in @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>Label</key> + <string>com.github.netdata</string> + <key>ProgramArguments</key> + <array> + <string>@sbindir_POST@/netdata</string> + </array> + <key>RunAtLoad</key> + <true/> +</dict> +</plist> |