Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/init/hl7server.conf - Hl7server config
- # This example config should work with Ubuntu 12.04+.
- # It allows you to manage HL7 Server with Upstart,
- # Ubuntu's native service management tool.
- #
- #
- # Save this config as /etc/init/hl7server.conf then manage hl7server with:
- # sudo start hl7server
- # sudo stop hl7server
- # sudo status hl7server
- #
- # Hack Upstart's reload command to 'quiet' hl7server:
- #
- # sudo reload hl7server
- #
- # or use the service command:
- # sudo service hl7server {start,stop,restart,status}
- #
- description "HPI Systems - HL7 TCP Server"
- # This script is not meant to start on bootup.
- start on runlevel [2345]
- stop on runlevel [06]
- # change to match your deployment user
- setuid ubuntu
- setgid ubuntu
- env HOME=/home/ubuntu
- env AFPGUSER=XXX
- env AFPGPASSWORD=YYY
- export AFPGUSER
- export AFPGPASSWORD
- respawn
- # respawn limit 3 30
- script
- cd /home/ubuntu/hl7_server/lib
- exec /home/ubuntu/.rbenv/shims/bundle exec ruby hl7_server.rb
- end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement