14 lines
250 B
SYSTEMD
14 lines
250 B
SYSTEMD
|
[Unit]
|
||
|
Description=NGINX Traffic Monitor
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
ExecStart=/usr/bin/python3 /root/site-manager/main.py
|
||
|
WorkingDirectory=/root/site-manager
|
||
|
Restart=always
|
||
|
User=nginx
|
||
|
Group=nginx
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|