app-metrics/node_exporter: use checkpath to ensure log directory exists
authorAustin English <wizardedit@gentoo.org>
Mon, 29 Apr 2019 21:55:31 +0000 (16:55 -0500)
committerManuel Rüger <mrueg@gentoo.org>
Fri, 10 May 2019 08:40:24 +0000 (10:40 +0200)
Signed-off-by: Austin English <wizardedit@gentoo.org>
Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
app-metrics/node_exporter/files/node_exporter-1.initd

index e8268e487d2d2cb1b3bdcac5ef6f4478035c2813..f38a9fe133d9bac1389b01386d40a7f8709bcca3 100644 (file)
@@ -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
+}