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

26 lines
537 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 webserver
2021-07-28 18:28:22 +02:00
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]
#Type=notify
#WatchdogSec=10
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/rails server -b ${ZAMMAD_BIND_IP} -p ${ZAMMAD_RAILS_PORT}"
[Install]
2023-05-19 11:59:02 +02:00
WantedBy={{ zammad_service }}