Add uptime.service
This commit is contained in:
parent
d4d5ee3a7c
commit
640a605814
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description = Uptime
|
||||
After = network.target
|
||||
|
||||
[Service]
|
||||
Type = simple
|
||||
Environment="PATH=/root/uptime/venv/bin"
|
||||
ExecStart = python3 /root/uptime/sys_uptime.py
|
||||
User = root
|
||||
Group = root
|
||||
Restart = on-failure
|
||||
RestartSec = 5
|
||||
TimeoutStartSec = infinity
|
||||
|
||||
[Install]
|
||||
WantedBy = multi-user.target
|
Loading…
Reference in New Issue