bot / deploy / ardegazu-bot.service
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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

static mirror of HEAD · about · clone: git clone https://git.ardegazu.ro/bot.git