# systemd unit for the ardegazu bot.
# install: cp deploy/ardegazu-bot.service /etc/systemd/system/
# mkdir -p /etc/ardegazu-bot && cp deploy/bot.example.json /etc/ardegazu-bot/bot.json
# systemctl enable --now ardegazu-bot
[Unit]
Description=ardegazu suite bot (p2p peer)
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/bin/node /opt/ardegazu-bot/stack-a/dist/main.js /etc/ardegazu-bot/bot.json
DynamicUser=yes
StateDirectory=ardegazu-bot
Environment=NODE_ENV=production
Restart=always
RestartSec=5
MemoryMax=1G
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
[Install]
WantedBy=multi-user.target