16 lines
291 B
INI
16 lines
291 B
INI
[Unit]
|
|
Description=myems-modbus-tcp daemon
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=root
|
|
Group=root
|
|
ExecStart=/usr/bin/python3 /myems-modbus-tcp/main.py
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
ExecStop=/bin/kill -s TERM $MAINPID
|
|
PrivateTmp=true
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|