[Unit]
Description=Price Feed Keeper Service
Documentation=https://github.com/d-bis/smom-dbis-138
After=network.target

[Service]
Type=simple
User=keeper
Group=keeper
WorkingDirectory=/opt/smom-dbis-138
Environment="NODE_ENV=production"
Environment="RPC_URL_138=https://rpc.d-bis.org"
EnvironmentFile=-/etc/smom-dbis-138/keeper.env
ExecStart=/usr/bin/node scripts/reserve/keeper-service.js
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=price-feed-keeper

# Security settings
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/smom-dbis-138/logs

# Resource limits
LimitNOFILE=65536
MemoryLimit=512M
CPUQuota=50%

[Install]
WantedBy=multi-user.target

