1 2 3 4 5
#!/bin/sh logdir=$(<<%= svbase %>/env/Service_Root)/log/<%= name %> mkdir -p $logdir chown <%= user %>:<%= group %> $logdir exec chpst -u <%= user %>:<%= group %> svlogd -tt $logdir