apt install nodejs -y
Contenu du fichier /etc/systemd/system/bonjoru.service
[Unit]
Description=Bonjoru bot
After=network.target
[Service]
Type=forking
UMask=007
WorkingDirectory=/root/bonjoru_bot/app
ExecStart=npm run start
Restart=on-failure
[Install]
WantedBy=multi-user.target
systemctl enable bonjoru
systemctl start bonjoru