Systemd (autorun) - ThomasTJdev/nim_websitecreator GitHub Wiki
If you are running NimWC on a server, and wants to ensure, that NimWC is started after reboot, you can use systemd
.
Create a new service file on the system
sudo nano /lib/systemd/system/nimwc.service
Config file
In the devops
-folder you can find a ready-to-deploy service file. You need to edit the paths e.g. to fit your system.
Insert the data into the service file.
Enable autostart and start it
sudo systemctl enable nimwc
sudo systemctl start nimwc
sudo systemctl status nimwc
View status and log
sudo systemctl status nimwc
# or log
sudo journalctl -u nimwc
# or log for last 10 minutes
sudo journalctl -u nimwc --since "10 minutes ago"