If you install SiteView-Web to a Linux system as a service, it will hook itself into the Linux startup process so that the application is automatically launched each time the system is started or it dies.
[Unit] Description=SiteView-Web Service [Service] # 20 seconds delay before running the service ExecStartPre=/bin/sleep 20 WorkingDirectory=[destination folder] ExecStart=[destination folder]/SiteViewWeb Restart=always RestartSec=60 KillSignal=SIGINT SyslogIdentifier=SiteView-Web-log User=[the logged in username] Environment=ASPNETCORE_ENVIRONMENT=Production Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false [Install] WantedBy=multi-user.target
You may copy and paste the above code to your service file but be sure to change the following parameters to fit your system:
1. Replace [destination folder] with the destination folder you extracted the .tar file to.
2. Replace [The logged in username] with the actual username.
Press Ctrl + X and hit ‘Y’ to save the service file and exit from the editor.
sudo systemctl daemon-reload
sudo systemctl enable SiteView-Web.service
sudo systemctl start SiteView-Web.serviceThe
application should run. To check if it is running, enter the following command:
sudo systemctl status SiteView-Web.service
If the application is running it should report as the following:
Notice the ‘active (running)’ in green color.
If the application is not running it should state it is dead.