summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/logger-runit
blob: 97d9f6e6e18be0ad223dc9b314f4e53120e56f33 (plain)
1
2
3
4
5
6
7
8
9
10
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 /usr/bin/svlogd -tt /var/log/$svname