add example systemd unit
This commit is contained in:
parent
52f76b97ec
commit
2f72ab1cc1
1 changed files with 13 additions and 0 deletions
13
sleepywaves.example.service
Normal file
13
sleepywaves.example.service
Normal 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
|
Loading…
Reference in a new issue