#!/bin/sh exec 2>&1 LOGDIR=$( cat ../env/LOGDIR ) if [ ! -d $LOGDIR ]; then mkdir -p $LOGDIR chown log $LOGDIR fi exec chpst -ulog svlogd -t $LOGDIR