Update OpenClaw service systemd unit to use Poetry run command instead of direct virtualenv path
Some checks failed
Deploy to Testnet / deploy-testnet (push) Failing after 14s
Deploy to Testnet / notify-deployment (push) Has been cancelled
Systemd Sync / sync-systemd (push) Has been cancelled
Node Failover Simulation / failover-test (push) Successful in 14s
Multi-Node Stress Testing / stress-test (push) Successful in 4s
Cross-Node Transaction Testing / transaction-test (push) Successful in 13s
Some checks failed
Deploy to Testnet / deploy-testnet (push) Failing after 14s
Deploy to Testnet / notify-deployment (push) Has been cancelled
Systemd Sync / sync-systemd (push) Has been cancelled
Node Failover Simulation / failover-test (push) Successful in 14s
Multi-Node Stress Testing / stress-test (push) Successful in 4s
Cross-Node Transaction Testing / transaction-test (push) Successful in 13s
- Changed ExecStart from hardcoded virtualenv path to `poetry run python -m openclaw_service.main` - This makes the service more portable and resilient to virtualenv path changes
This commit is contained in:
@@ -7,7 +7,7 @@ Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/aitbc/apps/openclaw-service
|
||||
Environment="PYTHONPATH=/opt/aitbc/apps/openclaw-service/src:/opt/aitbc"
|
||||
ExecStart=/root/.cache/pypoetry/virtualenvs/openclaw-service-EVT8oC-7-py3.13/bin/python -m openclaw_service.main
|
||||
ExecStart=/root/.local/bin/poetry run python -m openclaw_service.main
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
|
||||
Reference in New Issue
Block a user