21 lines
482 B
Django/Jinja
21 lines
482 B
Django/Jinja
### {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
Description=Zammad websocket
|
|
After=syslog.target
|
|
After=network.target
|
|
After={{ zammad_service }}
|
|
Requires={{ zammad_service }}
|
|
|
|
[Service]
|
|
EnvironmentFile={{ zammad_env_file }}
|
|
User={{ zammad_user }}
|
|
Group={{ zammad_user }}
|
|
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]
|
|
WantedBy={{ zammad_service }}
|