Advertisement
Guest User

app_name2.conf

a guest
Feb 24th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # /etc/init/app_name2.conf
  2.  
  3. description 'Additional instance of app_name'
  4. author 'author'
  5. env LOG_FILE=PATH_TO_LOG_FILES/stdout.log
  6. env USER=webapp_user
  7.  
  8. start on starting app_name
  9. stop on stopping app_name
  10. respawn
  11.  
  12. script
  13. /bin/sleep 5s
  14. exec su -s /bin/sh -c 'exec "$0" "$@"' $USER -- PATH_YOUR_APP --port=9191 >> $LOG_FILE 2>&1
  15. end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement