commit 786c7fa362f4616fbe055d15bdf956f35396d081
parent 7633944057a9fd7b77429290bd054eee52a2cfe9
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date: Thu, 12 Nov 2020 20:12:13 +0100
fix previous
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/templates/generic/root/etc/runit/log.run b/templates/generic/root/etc/runit/log.run
@@ -6,7 +6,6 @@
# pipes (ps | tail | cut) and would be similarly random.
SERVICE="$(ps -oargs $PPID | sed -n '/runsv/ s/runsv // p')"
-SVLOG="$(basename $(dirname $SERVICE))"
-LOG_PATH="/var/log/$SVLOG"
+LOG_PATH="/var/log/$SERVICE"
install -d -m 0750 -o root -g adm "$LOG_PATH"
exec svlogd -tt "$LOG_PATH"