mirror of
https://github.com/skaringa/water-counter.git
synced 2024-11-23 09:54:24 +01:00
systemd unit file added
This commit is contained in:
parent
7eede54912
commit
8485b87bbf
15
wairc.service
Normal file
15
wairc.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Water meter service
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
WorkingDirectory=/home/pi/water-counter
|
||||
ExecStart=/home/pi/water-counter/wairc.py
|
||||
User=pi
|
||||
Group=dialout
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user