mirror of
https://github.com/skaringa/water-counter.git
synced 2024-11-23 09:54:24 +01:00
16 lines
264 B
SYSTEMD
16 lines
264 B
SYSTEMD
|
[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
|