Service Creator

Service creator need the Organization or above edtion

How to include Service Creator

GUI Tool

Check “Include Service Creator” on the App Output Page

include-service-creator

CLI Tool

Add includeServiceCreator field to the task file

1
includeServiceCreator: true

How to use the Service Creator

Windows

The service creator of Windows is just the nssm tool

You can find this tool in the output folder, It needs to be used with your executable file.

Install the service

Please cd to the output folder, then execute

1
2
3
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 the service

1
nssm start <service-name>

Stop the service

1
nssm stop <service-name>

Check the status

1
nssm status <service-name>

Remove the service

1
nssm remove <service-name>

For detailed usage of nssm, please refer to https://nssm.cc/commands

Linux

The service creator of Linux is based on systemctl

Install Service

Please cd to the output folder, then execute

1
2
3
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, the service is automatically started and is set to boot by default

Check the service status

1
sudo systemctl status service-name

Stop the service

1
sudo systemctl stop service-name

Star the service

1
sudo systemctl start service-name

Disable automatic startup

1
sudo systemctl disable service-name

Enable automatic startup

1
sudo systemctl enable service-name

For detaield usage of systemctl, please refer to https://www.shubhamdipt.com/blog/how-to-create-a-systemd-service-in-linux/