Add ip-api.service
This commit is contained in:
parent
f6aba59038
commit
f6bf5f8722
1 changed files with 14 additions and 0 deletions
14
ip-api.service
Normal file
14
ip-api.service
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=PixelHosting IP API
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=user
|
||||
Group=group
|
||||
WorkingDirectory=/opt/ip-api
|
||||
ExecStart=/usr/bin/python3 /opt/ip-api/app.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue