fix: add SyslogIdentifier to systemd services for proper journal logging
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Systemd Sync / sync-systemd (push) Has been cancelled
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Systemd Sync / sync-systemd (push) Has been cancelled
- Add SyslogIdentifier to aitbc-blockchain-p2p.service - Add SyslogIdentifier to aitbc-agent-registry.service - Add SyslogIdentifier to aitbc-ai.service - Add SyslogIdentifier to aitbc-blockchain-sync.service - Add SyslogIdentifier to aitbc-load-secrets.service - Add SyslogIdentifier to aitbc-monitoring.service - Add SyslogIdentifier to aitbc-openclaw.service - Add SyslogIdentifier to aitbc-plugin.service This ensures services log with their service name instead of 'python' or 'poetry' in journalctl.
This commit is contained in:
@@ -5,11 +5,17 @@ After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/aitbc/apps/monitoring-service
|
||||
Environment="PYTHONPATH=/opt/aitbc/apps/monitoring-service/src:/opt/aitbc"
|
||||
ExecStart=/root/.local/bin/poetry run python -m monitoring_service.main
|
||||
Group=root
|
||||
WorkingDirectory=/opt/aitbc
|
||||
Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin
|
||||
EnvironmentFile=/etc/aitbc/.env
|
||||
EnvironmentFile=/etc/aitbc/node.env
|
||||
ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/scripts/wrappers/aitbc-monitoring-wrapper.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
RestartSec=5
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=aitbc-monitoring
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user