Files
aitbc/systemd/aitbc-blockchain-node.service
aitbc d342c2d5ab
Some checks failed
Systemd Sync / sync-systemd (push) Has been cancelled
Consolidate environment files - remove production.env and blockchain.env, use only .env and node.env
2026-04-15 10:23:25 +02:00

43 lines
897 B
Desktop File

[Unit]
Description=AITBC Production Blockchain Node
After=network.target postgresql.service redis.service
Wants=postgresql.service redis.service
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/aitbc
Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin
Environment=PYTHONPATH=/opt/aitbc/apps/blockchain-node/src
EnvironmentFile=/etc/aitbc/.env
EnvironmentFile=/etc/aitbc/node.env
# Production execution
ExecStart=/opt/aitbc/venv/bin/python -m aitbc_chain.combined_main
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
TimeoutStopSec=10
# Production reliability
Restart=always
RestartSec=5
# Production logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=aitbc-blockchain
# Production security
NoNewPrivileges=true
ProtectHome=true
# Production performance
LimitNOFILE=65536
LimitNPROC=4096
MemoryMax=2G
CPUQuota=50%
[Install]
WantedBy=multi-user.target