Files
aitbc/systemd/aitbc-monitor.service
aitbc ca34b6fee3
Some checks failed
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Systemd Sync / sync-systemd (push) Has been cancelled
Consolidate service scripts into apps directories
- Move blockchain scripts to apps/blockchain-node/scripts/
- Move marketplace scripts to apps/marketplace/scripts/
- Move agent daemon to apps/agent-coordinator/scripts/
- Move monitor to apps/monitor/
- Update systemd service files to point to new locations
- Update internal path references in moved scripts
- Remove empty /opt/aitbc/services directory
2026-04-15 11:56:03 +02:00

40 lines
732 B
Desktop File

[Unit]
Description=AITBC Monitor Service
After=network.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/aitbc
Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin
EnvironmentFile=/etc/aitbc/.env
EnvironmentFile=/etc/aitbc/node.env
# Monitor execution
ExecStart=/opt/aitbc/venv/bin/python /opt/aitbc/apps/monitor/monitor.py
# Production reliability
Restart=always
RestartSec=5
StartLimitBurst=5
StartLimitIntervalSec=60
# Production logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=aitbc-monitor
# Production security
NoNewPrivileges=true
ProtectHome=true
# Production performance
LimitNOFILE=65536
LimitNPROC=4096
MemoryMax=512M
CPUQuota=25%
[Install]
WantedBy=multi-user.target