2019-10-12 19:50:49 +01:00
|
|
|
[Unit]
|
|
|
|
Description=cloudplow
|
2019-10-17 18:40:53 +01:00
|
|
|
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
|