dotfiles/.ansible/roles/media_server/files/cloudplow.service

18 lines
372 B
SYSTEMD
Raw Normal View History

2019-10-12 19:50:49 +01:00
[Unit]
Description=cloudplow
After=mnt-media.mount
Requires=mnt-media.mount
2019-10-12 19:50:49 +01:00
[Service]
User=media
Group=media
Type=simple
WorkingDirectory=/srv/app/cloudplow/
ExecStart=/srv/app/cloudplow/.venv/bin/python3 /srv/app/cloudplow/cloudplow.py run --loglevel=INFO
ExecStopPost=/bin/rm -rf /srv/app/cloudplow/locks
Restart=always
RestartSec=10
[Install]
WantedBy=default.target