oshipka/provision/templates/worker.service

15 lines
323 B
SYSTEMD
Raw Permalink Normal View History

2020-06-21 11:17:34 +02:00
[Unit]
Description=oshipka {{ project_name }} worker service
Requires=network.target
After=network.target
[Service]
User={{ user }}
Type=simple
WorkingDirectory={{ pwd }}
ExecStart=/bin/bash -c 'export OSHIPKA_PATH={{ oshipka_path }}; $OSHIPKA_PATH/oshipka.sh worker'
Restart=on-failure
[Install]
WantedBy=default.target