diff options
author | Austin English <wizardedit@gentoo.org> | 2019-04-29 16:55:31 -0500 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2019-05-10 10:40:24 +0200 |
commit | 1830cd356154c76b341852ad593463a1829284d2 (patch) | |
tree | ef974e4165e2a86ebff812e5336e8d15ee7e0314 /app-metrics/node_exporter | |
parent | app-metrics/node_exporter: Version bump to 0.18.0 (diff) | |
download | gentoo-1830cd356154c76b341852ad593463a1829284d2.tar.gz gentoo-1830cd356154c76b341852ad593463a1829284d2.tar.bz2 gentoo-1830cd356154c76b341852ad593463a1829284d2.zip |
app-metrics/node_exporter: use checkpath to ensure log directory exists
Signed-off-by: Austin English <wizardedit@gentoo.org>
Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
Diffstat (limited to 'app-metrics/node_exporter')
-rw-r--r-- | app-metrics/node_exporter/files/node_exporter-1.initd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app-metrics/node_exporter/files/node_exporter-1.initd b/app-metrics/node_exporter/files/node_exporter-1.initd index e8268e487d2d..f38a9fe133d9 100644 --- a/app-metrics/node_exporter/files/node_exporter-1.initd +++ b/app-metrics/node_exporter/files/node_exporter-1.initd @@ -17,3 +17,7 @@ start_stop_daemon_args="--user ${user} --group ${group} \ depend() { after net } + +start_pre() { + checkpath -q -d -m 0755 -o ${user}:${group} /var/log/node_exporter +} |