Advertisement
Guest User

Untitled

a guest
Aug 10th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. # /etc/init/hl7server.conf - Hl7server config
  2.  
  3. # This example config should work with Ubuntu 12.04+.
  4. # It allows you to manage HL7 Server with Upstart,
  5. # Ubuntu's native service management tool.
  6. #
  7. #
  8. # Save this config as /etc/init/hl7server.conf then manage hl7server with:
  9. # sudo start hl7server
  10. # sudo stop hl7server
  11. # sudo status hl7server
  12. #
  13. # Hack Upstart's reload command to 'quiet' hl7server:
  14. #
  15. # sudo reload hl7server
  16. #
  17. # or use the service command:
  18. # sudo service hl7server {start,stop,restart,status}
  19. #
  20.  
  21. description "HPI Systems - HL7 TCP Server"
  22.  
  23. # This script is not meant to start on bootup.
  24. start on runlevel [2345]
  25. stop on runlevel [06]
  26.  
  27. # change to match your deployment user
  28. setuid ubuntu
  29. setgid ubuntu
  30. env HOME=/home/ubuntu
  31. env AFPGUSER=XXX
  32. env AFPGPASSWORD=YYY
  33. export AFPGUSER
  34. export AFPGPASSWORD
  35.  
  36. respawn
  37. # respawn limit 3 30
  38.  
  39. script
  40. cd /home/ubuntu/hl7_server/lib
  41. exec /home/ubuntu/.rbenv/shims/bundle exec ruby hl7_server.rb
  42. end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement