trabajo-afectivo/script/systemd/zammad-rails.service

20 lines
482 B
SYSTEMD
Raw Normal View History

2017-09-16 15:48:42 +00:00
[Unit]
Description=Zammad railsserver
After=syslog.target
After=network.target
After=zammad.service
Requires=zammad.service
[Service]
EnvironmentFile=/etc/zammad/zammad.env
User=${ZAMMAD_USER:-zammad}
Group=${ZAMMAD_GROUP:-zammad}
2017-09-16 15:48:42 +00:00
Restart=always
WorkingDirectory=${ZAMMAD_WORKING_DIRECTORY:-/opt/zammad}
2017-09-16 15:48:42 +00:00
ExecStart=/bin/bash -l -c "${BUNDLE_BINARY:-bundle} exec script/rails server -b ${ZAMMAD_BIND_IP:-127.0.0.1} -p ${ZAMMAD_RAILS_PORT:-3000}"
2017-09-16 15:48:42 +00:00
[Install]
WantedBy=zammad.service