fix: config file path

This commit is contained in:
zhangsz
2025-03-07 10:30:51 +08:00
parent bf65bd4fc5
commit 0fc3b63189
5 changed files with 11 additions and 7 deletions

View File

@@ -1,7 +1,8 @@
#!/bin/bash
test ! -f /usr/local/restproxy/conf/rest_proxy.conf && cp -rf /usr/local/restproxy/conf/default/* /usr/local/restproxy/conf
test ! -f /usr/local/restproxy/etc/config.yaml && cp -rf /usr/local/restproxy/etc/default/* /usr/local/restproxy/etc
systemctl daemon-reload
systemctl enable restproxy
exit 0

View File

@@ -1,7 +1,7 @@
[Service]
Type=idle
WorkingDirectory=/usr/local/restproxy
ExecStart=/usr/local/restproxy/restproxy -r 1 > /dev/null 2>&1 &
ExecStart=/usr/local/restproxy/bin/restproxy -r 1 > /dev/null 2>&1 &
Restart=always
RestartSec=3
StandardOutput=null