summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/runit/runitscripts/logger
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/runit/runitscripts/logger')
-rwxr-xr-xabs/core-testing/runit/runitscripts/logger11
1 files changed, 11 insertions, 0 deletions
diff --git a/abs/core-testing/runit/runitscripts/logger b/abs/core-testing/runit/runitscripts/logger
new file mode 100755
index 0000000..6888f6f
--- /dev/null
+++ b/abs/core-testing/runit/runitscripts/logger
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+svname=$( cd .. && basename $( pwd ) )
+if [ ! -d /var/log/$svname ]
+then
+ mkdir /var/log/$svname
+ chown root.root /var/log/$svname
+ chmod 700 /var/log/$svname
+fi
+
+exec /sbin/svlogd -tt /var/log/$svname