zammad.service 519 B

12345678910111213141516171819
  1. [Unit]
  2. Description=Zammad
  3. After=syslog.target
  4. After=network.target
  5. [Service]
  6. Type=simple
  7. User=<zammad
  8. Group=zammad
  9. ExecStart=bash -l -c "RAILS_ENV=production bundle exec script/websocket-server.rb start -d -i tmp/pids/websocket.pid -p 6042 -b 127.0.0.1"
  10. ExecStop=bash -l -c "RAILS_ENV=production bundle exec script/websocket-server.rb stop -d -i tmp/pids/websocket.pid -p 6042 -b 127.0.0.1"
  11. # Give a reasonable amount of time for the server to start up/shut down
  12. TimeoutSec=300
  13. [Install]
  14. WantedBy=multi-user.target