ansible-role-zammad/templates/systemd/zammad-websocket.service.j2

24 lines
525 B
Text
Raw Normal View History

2023-05-19 11:59:02 +02:00
### {{ ansible_managed }}
2021-07-28 18:28:22 +02:00
[Unit]
Description=Zammad websocket
After=syslog.target
After=network.target
2023-05-19 11:59:02 +02:00
After={{ zammad_service }}
Requires={{ zammad_service }}
StartLimitIntervalSec=6
StartLimitBurst=10
2021-07-28 18:28:22 +02:00
[Service]
2023-05-19 11:59:02 +02:00
EnvironmentFile={{ zammad_env_file }}
2021-11-13 08:39:24 +01:00
User={{ zammad_user }}
Group={{ zammad_user }}
2021-07-28 18:28:22 +02:00
Restart=always
WorkingDirectory={{ zammad_home }}
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY} exec script/websocket-server.rb -b ${ZAMMAD_BIND_IP} -p ${ZAMMAD_WEBSOCKET_PORT} start"
[Install]
2023-05-19 11:59:02 +02:00
WantedBy={{ zammad_service }}