Pierwszy commit - inicjalizacja projektu
This commit is contained in:
25
read-energy.service
Normal file
25
read-energy.service
Normal file
@@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=Energy Meter Reader (ORNO & SUN2K)
|
||||
Documentation=file:///home/ms/projekty/python3/modebus/ornoserial3/CONFIG.md
|
||||
After=network.target mosquitto.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=ms
|
||||
Group=dialout
|
||||
WorkingDirectory=/home/ms/projekty/python3/modebus/ornoserial3
|
||||
ExecStart=/home/ms/projekty/python3/modebus/ornoserial3/modborno3
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=read-energy
|
||||
|
||||
# Restart on failure
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
# Security settings
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user