pre-start script bash << "EOF" mkdir -p <%= log %> chown -R <%= user %> <%= log %> EOF end script start on started network stop on stopping network