The readme file does not mention the need to create a folder named
/var/lib/node_exporter/textfile_collector as a step. Lack of this
folder results errors for node_exporter service which is visible
in systemd status output. These errors possibly harmless but it is
not good to have them still.
$ sudo systemctl status node_exporter
--- snipped ---
Apr 04 14:51:35 ubuntu node_exporter[14713]: level=info ts=2020-04-04T14:51:35.584Z caller=node_exporter.go:190 msg="Listening on" address=:9100
Apr 04 15:05:34 ubuntu node_exporter[14876]: level=error ts=2020-04-04T15:05:34.464Z caller=textfile.go:197 collector=textfile msg="failed to read textfile collector directory" path=/var/lib/node_exporter/textfile_collector=textfile msg="failed to read textfile collector directory" path=/var/lib/node_exporter/textfile_collector err="open /var/lib/node_exporter/textfile_collector: no such file or directory"
--- snipped ---
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
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>
* Add example LaunchCtl-file for MacOS
Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>
* Rewrite program location in launctctl file
This seem to be the way most plist files does it.
Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>
* Make launct-agent run as nobody/nobody
Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>
* Rename plist per general naming scheme
Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>
* Pass arguments-file when launched through launchctl
Signed-off-by: Morten Siebuhr <sbhr@sbhr.dk>