add example systemd unit

This commit is contained in:
Asaril 2023-05-24 22:54:36 +02:00
parent 52f76b97ec
commit 2f72ab1cc1

View file

@ -0,0 +1,13 @@
[Unit]
Description=Sleepywaves
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=1
User=dietpi
ExecStart=/home/dietpi/.cache/pypoetry/virtualenvs/sleepywaves-py3.9/bin/python /home/dietpi/sleepywaves/src/sleepywaves.py -m /mnt/usbstick
[Install]
WantedBy=multi-user.target