Running as a service
Using systemd, run WildBeast as a service for automatic (re)starting
Good to know: This guide uses
systemd
, we're assuming this is present on your system.If you're using Ubuntu 20.04, you're already using
systemd
.Start creating a new service:
sudo nano /etc/systemd/system/wildbeast.service
Copy and paste the following example:
[Unit]
After=network.target network-online.target
Requires=network.target network-online.target
StartLimitBurst=3
StartLimitIntervalSec=0
[Service]
WorkingDirectory=/REPLACE THIS
Type=simple
Restart=on-failure
RestartSec=1
User=REPLACE THIS
ExecStart=/usr/bin/env npm start
[Install]
WantedBy=multi-user.target
Pay attention to the
REPLACE THIS
, as you might've guessed you need to replace these values.WorkingDirectory
- The folder where you saved WildBeastFor example:/home/wildbeast/WildBeast
User
- The user that's going to run WildBeast
sudo systemctl start wildbeast.service
sudo systemctl stop wildbeast.service
sudo systemctl enable wildbeast.service
To undo:
sudo systemctl disable wildbeast.service
sudo systemctl restart wildbeast.service
Last modified 1yr ago