2023-05-19 11:59:02 +02:00
|
|
|
### {{ ansible_managed }}
|
|
|
|
|
2021-07-28 18:28:22 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Zammad rails server
|
|
|
|
After=syslog.target
|
|
|
|
After=network.target
|
2023-05-19 11:59:02 +02:00
|
|
|
After={{ zammad_service }}
|
|
|
|
Requires={{ zammad_service }}
|
2021-07-28 18:28:22 +02:00
|
|
|
|
|
|
|
[Service]
|
2022-10-30 12:51:31 +01:00
|
|
|
#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 }}
|