Service Creator
Service creator requires the Team version or higher.
How to include Service Creator
GUI Tools
Check "Include Service Creator" on the application output page
Command-line Tools
Add the includeServiceCreator field in the task file
includeServiceCreator: true
How to use Service Creator
Windows
Windows' service creator is NSSM tool
You can find this tool in the output folder, and it needs to be used together with your executable file.
Installation Service
Enter the output folder and execute
nssm install service-name exe-file-name [arguments]
# For Tomcat Application, go to tomcat/bin folder
nssm install service-name tomcat-launcher [jvm-arguments]
Start Service
nssm start service-name;
Stop service
nssm stop service-name
Check status
nssm status service-name
Remove Service
nssm remove service-name
Please refer to the detailed usage of nssm https://nssm.cc/commands
Linux
The service creator under Linux is based on systemctl
Installation Service
Enter the output folder and execute
sudo ./service-creator service-name exe-file-name [arguments]
# For Tomcat Application, go to tomcat/bin folder
sudo ./service-creator service-name tomcat-launcher
After the service is created, it will run automatically and be set to start with the system.
Check service status
sudo systemctl status service-name
Service discontinued
sudo systemctl stop service-name
Start Service
sudo systemctl start service-name
Disable autoplay
sudo systemctl disable service-name
Enable Auto Run
sudo systemctl enable service-name
For detailed use of systemctl, please refer to https://www.shubhamdipt.com/blog/how-to-create-a-systemd-service-in-linux/