aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authordbalakirev <dave00ster@gmail.com>2018-10-10 12:44:05 +0200
committerJohannes 'fish' Ziemke <github@freigeist.org>2018-10-10 12:44:05 +0200
commit5273b00df949ddbb051e48c3b21d0cd01f6e728d (patch)
treebdc711f014f52683ab91552ad426a2ae52fc3a8c /examples
parentbddf41d327d6f2148e5ba27c8bc1fd5c4f02e20e (diff)
downloadprometheus_node_collector-5273b00df949ddbb051e48c3b21d0cd01f6e728d.tar.bz2
prometheus_node_collector-5273b00df949ddbb051e48c3b21d0cd01f6e728d.tar.xz
prometheus_node_collector-5273b00df949ddbb051e48c3b21d0cd01f6e728d.zip
launchctl example based on LaunchDaemons (#1102)
LaunchDaemons are the correct way to create services that are restart proof. There is now only a single destination place mentioned in the readme for the plist file. Signed-off-by: Dávid Balakirev <dave00ster@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/launchctl/README.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/launchctl/README.md b/examples/launchctl/README.md
index 39e440c..bc390f2 100644
--- a/examples/launchctl/README.md
+++ b/examples/launchctl/README.md
@@ -1,17 +1,16 @@
1# MacOS LaunchAgent 1# MacOS LaunchDaemon
2 2
3If you're installing through a package manager, you probably don't need to deal 3If you're installing through a package manager, you probably don't need to deal
4with this file. 4with this file.
5 5
6The `plist` file should be put in `~/Library/LaunchAgents/` (user-install) or 6The `plist` file should be put in `/Library/LaunchDaemons/` (user defined daemons), and the binary installed at
7`/Library/LaunchAgents/` (global install), and the binary installed at
8`/usr/local/bin/node_exporter`. 7`/usr/local/bin/node_exporter`.
9 8
10Ex. install globally by 9Ex. install globally by
11 10
12 sudo cp -n node_exporter /usr/local/bin/ 11 sudo cp -n node_exporter /usr/local/bin/
13 sudo cp -n examples/launchctl/io.prometheus.node_exporter.plist /Library/LaunchAgents/ 12 sudo cp -n examples/launchctl/io.prometheus.node_exporter.plist /Library/LaunchDaemons/
14 sudo launchctl bootstrap system/ /Library/LaunchAgents/io.prometheus.node_exporter.plist 13 sudo launchctl bootstrap system/ /Library/LaunchDaemons/io.prometheus.node_exporter.plist
15 14
16 # Optionally configure by dropping CLI arguments in a file 15 # Optionally configure by dropping CLI arguments in a file
17 echo -- '--web.listen-address=:9101' | sudo tee /usr/local/etc/node_exporter.args 16 echo -- '--web.listen-address=:9101' | sudo tee /usr/local/etc/node_exporter.args