Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/init/app_name2.conf
- description 'Additional instance of app_name'
- author 'author'
- env LOG_FILE=PATH_TO_LOG_FILES/stdout.log
- env USER=webapp_user
- start on starting app_name
- stop on stopping app_name
- respawn
- script
- /bin/sleep 5s
- exec su -s /bin/sh -c 'exec "$0" "$@"' $USER -- PATH_YOUR_APP --port=9191 >> $LOG_FILE 2>&1
- end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement