Fix path bugs
This commit is contained in:
@ -32,7 +32,7 @@ Description=Singbox Python Service
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/bin/bash -c 'source /etc/hysteria/hysteria_venv/bin/activate && /etc/hysteria/hysteria2_venv/bin/python /etc/hysteria/core/scripts/singbox/singbox.py'
|
ExecStart=/bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && /etc/hysteria/hysteria2_venv/bin/python /etc/hysteria/core/scripts/singbox/singbox.py'
|
||||||
WorkingDirectory=/etc/hysteria/core/scripts/singbox
|
WorkingDirectory=/etc/hysteria/core/scripts/singbox
|
||||||
EnvironmentFile=/etc/hysteria/core/scripts/singbox/.env
|
EnvironmentFile=/etc/hysteria/core/scripts/singbox/.env
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|||||||
@ -82,7 +82,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/etc/hysteria/core/scripts/webpanel
|
WorkingDirectory=/etc/hysteria/core/scripts/webpanel
|
||||||
EnvironmentFile=/etc/hysteria/core/scripts/webpanel/.env
|
EnvironmentFile=/etc/hysteria/core/scripts/webpanel/.env
|
||||||
ExecStart=/bin/bash -c 'source /etc/hysteria/hysteria_venv/bin/activate && /etc/hysteria/hysteria_venv/bin/python /etc/hysteria/core/scripts/webpanel/app.py'
|
ExecStart=/bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && /etc/hysteria/hysteria2_venv/bin/python /etc/hysteria/core/scripts/webpanel/app.py'
|
||||||
#Restart=always
|
#Restart=always
|
||||||
User=root
|
User=root
|
||||||
Group=root
|
Group=root
|
||||||
|
|||||||
Reference in New Issue
Block a user