You can register NexJ Server
as a service on Linux.
You register NexJ Server
by specifying the server location in the modeld.service
configuration file, copying the configuration file to the appropriate
location, and running a command to register the server as a service.
To register NexJ Server
as a service:
-
Navigate to
SERVER_HOME/bin.
-
Open the modeld.service file in a text
editor.
-
Modify the
Environment=MODELD_HOME
variable to
point to SERVER_HOME
directory.
For example, change the variable to
Environment=MODELD_HOME=/teee.
-
Save and close the modeld.service
file.
-
Copy the modeld.service file to
/etc/systemd/system/.
-
From the terminal, use the following command to register the
server as a service:
Note: You can use the following command to disable the server as
a service:
systemctl disable modeld
-
Use the following commands to start the service:
Note: You can use the following command to stop the
service:
systemctl stop modeld
You have registered NexJ Server
as a service.