Remove legacy aitbc-monitor.service
- Removed systemd service file (service was failing due to non-existent monitor.py) - aitbc-monitoring.service provides the actual monitoring functionality
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
[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
|
||||
Environment=PYTHONPATH=/opt/aitbc:/opt/aitbc/packages/py/aitbc-sdk/src:/opt/aitbc/packages/py/aitbc-crypto/src
|
||||
EnvironmentFile=/etc/aitbc/blockchain.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
|
||||
StartLimitInterval=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
|
||||
Reference in New Issue
Block a user