#!/bin/sh

#AUTHOR: Roberto Alsina (http://www.pycs.net/users/0000076)
#Modified by Marco Martin <mart@notmart.org>

svname=`pwd|sed -e "s/.*\/\(.*\)\/.*/\1/"`

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
 
