12345678910111213141516171819 |
- [Unit]
- Description=Zammad
- After=syslog.target
- After=network.target
- [Service]
- Type=simple
- User=<zammad
- Group=zammad
- 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"
- 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"
- # Give a reasonable amount of time for the server to start up/shut down
- TimeoutSec=300
- [Install]
- WantedBy=multi-user.target
|