Registering NexJ Server as a service on Linux

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:
  1. Navigate to SERVER_HOME/bin.
  2. Open the modeld.service file in a text editor.
  3. Modify the Environment=MODELD_HOME variable to point to SERVER_HOME directory.
    For example, change the variable to Environment=MODELD_HOME=/teee.
  4. Save and close the modeld.service file.
  5. Copy the modeld.service file to /etc/systemd/system/.
  6. From the terminal, use the following command to register the server as a service:
    systemctl enable modeld
    Note: You can use the following command to disable the server as a service:
    systemctl disable modeld
  7. Use the following commands to start the service:
    systemctl start modeld
    Note: You can use the following command to stop the service:
    systemctl stop modeld
You have registered NexJ Server as a service.