Add pypopper.service
This commit is contained in:
commit
24e916b560
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description = PyPopper
|
||||
After = network.target
|
||||
|
||||
[Service]
|
||||
Type = simple
|
||||
Environment="PATH=/root/popper/venv/bin"
|
||||
ExecStart = python3 /root/popper/pypopper.py 110 /root/popper/email.txt
|
||||
User = root
|
||||
Group = root
|
||||
Restart = on-failure
|
||||
RestartSec = 5
|
||||
TimeoutStartSec = infinity
|
||||
|
||||
[Install]
|
||||
WantedBy = multi-user.target
|
Loading…
Reference in New Issue