improve signal handling + emit sd-notify on start

This commit is contained in:
ed 2021-07-17 04:15:07 +02:00
parent 7fa5b23ce3
commit 5c7debd900
4 changed files with 71 additions and 11 deletions

View file

@ -12,6 +12,7 @@
Description=copyparty file server
[Service]
Type=notify
ExecStart=/usr/bin/python3 /usr/local/bin/copyparty-sfx.py -q -v /mnt::a
ExecStartPre=/bin/bash -c 'mkdir -p /run/tmpfiles.d/ && echo "x /tmp/pe-copyparty*" > /run/tmpfiles.d/copyparty.conf'