Managing NuoDB Services on Linux

This topic provides information about the following:

Starting and Stopping Services

On Linux platforms on which NuoDB was installed with a package installer (dpkg or rpm), start NuoDB services as follows:

sudo service nuoagent start
sudo service nuorestsvc start

For package installations, stop NuoDB services as follows:

sudo service nuoagent stop
sudo service nuorestsvc stop

For Linux tar installations, start NuoDB services as follows:

Note: Run from the $NUODB_HOME directory (the directory where the NuoDB product was installed, usually /opt/nuodb).

sudo etc/nuoagent start
sudo etc/nuorestsvc start

For Linux tar installations, stop NuoDB services as follows:

Note: Run from the $NUODB_HOME directory (the directory where the NuoDB product was installed, usually /opt/nuodb).

sudo etc/nuoagent stop
sudo etc/nuorestsvc stop

Setting the Domain Password

Unlike Windows, the NuoDB installer on Linux does not prompt you for the domain password. After installation, you must edit the $NUODB_HOME/etc/default.properties file and set the domainPassword property. You can then start the broker or agent service, and the NuoDB REST service.

If you try to start NuoDB services and they fail to start, it might be due to missing credentials.

Controlling Automatic Startup of NuoDB Services

By default, NuoDB installers do not automatically start or register services for automatic start upon reboot.

The expectation is that you typically have the broker and REST services automatically started on a single developer machine. When provisioning additional hosts to a domain, the domain administrator typically installs NuoDB without specifying automatic start, edits the properties (see Host Properties (default.properties)), and then sets the services to automatically start. See Creating the Domain and Adding Hosts. The following explains how to control auto-start by using the standard service mechanism.

Automatic start of NuoDB services applies to only Linux package Installations (dpkg or rpm). Tar file installations require manual starts. The following commands disable the automatic restarting of NuoDB services on reboot. They do not stop any currently running instances of the service.

Linux Package installers (dpkg or rpm) include an additional shutdown service called nuoengine. The nuoengine service controls whether or not all NuoDB database processes (TEs and SMs) are gracefully shut down before shutting down the agent/broker.