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

25 lines
537 B
Django/Jinja

### {{ ansible_managed }}
[Unit]
Description=Zammad webserver
After=syslog.target
After=network.target
After={{ zammad_service }}
Requires={{ zammad_service }}
StartLimitIntervalSec=6
StartLimitBurst=10
[Service]
#Type=notify
#WatchdogSec=10
EnvironmentFile={{ zammad_env_file }}
User={{ zammad_user }}
Group={{ zammad_user }}
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]
WantedBy={{ zammad_service }}