Running HyperServer as a Linux Service
In a previous section we published instructions on how to deploy a uniGUI Linux executable as a Linux service. Deploying HyperServer binaries as services is similar to deploying any Linux executable uniGUI web app.
Before reading further, please refer to this page which describes creating and managing Linux services in detail:
https://unigui.com/doc/online_help/deploying-as-a-service.htm
Here we will deploy as services all four servers created in the previous section:
https://unigui.com/doc/online_help/deployment-example-(server-far.htm
As a reminder, the example deployed four servers: one master and three slave ServerNodes.
For the master HyperServer we will create this service file under /etc/systemd/system:
hyper_server.service
For the slave ServerNodes we will create these three files:
hyper_server_a.service
hyper_server_b.service
hyper_server_c.service
Make sure you have root privileges while creating and editing these files (use sudo or switch to root).
Create the ServerNode C service file
Create /etc/systemd/system/hyper_server_c.service with the following content:
Note: The Description for this unit in the original content is "HyperServer(ServerNodeB)". Keep as-is if matching your source; you may want to correct it to "ServerNodeC" if desired.
Enable and start the services
After creating these four files, enable the services and start them (root privileges required):
If everything is done correctly, the demo cluster should be up and running. It can be tested by checking the master HyperServer server control panel:
http://192.168.1.15:88/server
To complete the setup, restart the Linux server and verify that all four services start automatically on boot.