osem-fcy/dist/osem-dj.service
Henne Vogelsang 228190396c Add the files we use for production deployments
We are using apache as reverse proxy and two systemd units
(puma & delayed job) for events.opensuse.org. Track them
also in this project, might be useful for others.
2019-02-16 00:40:47 +01:00

17 lines
470 B
Desktop File

[Unit]
Description=Open Source Event Manager Delayed Jobs
Wants=osem.service
Before=osem.service
[Service]
User=osem
EnvironmentFile=/home/osem/events/current/.env.production
WorkingDirectory=/home/osem/events/current
ExecStart = /usr/bin/bundle exec bin/delayed_job -e production start
ExecStop = /usr/bin/bundle exec bin/delayed_job -e production stop
Type = forking
PIDFile = /home/osem/events/current/tmp/pids/delayed_job.pid
[Install]
WantedBy=multi-user.target