depr -cfg flag & change to -c

This commit is contained in:
wjqserver 2025-03-29 12:01:46 +08:00
parent 153b544024
commit 4b37c6bb2b
7 changed files with 34 additions and 12 deletions

View file

@ -3,7 +3,7 @@ Description=Github Proxy Service
After=network.target
[Service]
ExecStart=/bin/bash -c '/usr/local/ghproxy/ghproxy -cfg /usr/local/ghproxy/config/config.toml > /usr/local/ghproxy/log/run.log 2>&1'
ExecStart=/bin/bash -c '/usr/local/ghproxy/ghproxy -c /usr/local/ghproxy/config/config.toml > /usr/local/ghproxy/log/run.log 2>&1'
WorkingDirectory=/usr/local/ghproxy
Restart=always
User=root