Fix argparse option order and generated service invocation

This commit is contained in:
Andrew Emelyaneko
2026-10-31 19:56:51 +03:00
parent b4fc2b5e50
commit 8cccc2612d
2 changed files with 14 additions and 6 deletions
+2 -2
View File
@@ -52,9 +52,9 @@ JSON
<array>
<string>${PYTHON}</string>
<string>${AGENT}</string>
<string>serve</string>
<string>--config</string>
<string>${CONFIG}</string>
<string>serve</string>
</array>
<key>RunAtLoad</key>
<true/>
@@ -113,7 +113,7 @@ Wants=network-online.target
[Service]
Type=simple
ExecStart=${PYTHON} ${AGENT} serve --config ${CONFIG}
ExecStart=${PYTHON} ${AGENT} --config ${CONFIG} serve
Restart=always
RestartSec=5
User=root