1 2 3 4 5 6 7 8 9
#!/bin/sh set -e LOG_D="/var/log/nopsyncd/" if [ ! -d "$LOG_D" ]; then mkdir -p -m0750 "$LOG_D" fi chown root:adm "$LOG_D" exec chpst -u root:adm svlogd -tt "$LOG_D"