Starting, reload and stopping Naemon

Up To: Contents

See Also: Verifying Your Configuration

There’s more than one way to start, reload, stop, and restart Naemon. Here are some of the more common ones.

Tip: Always make sure you verify your configuration before you (re)start Naemon.

Reloading Naemon

The most common scenario will probably be to reload Naemon after changes of Naemon configuration. You don’t need to restart Naemon after you added new hosts, commands and services. Simply reload the configuration.

  1. Init script: Most distributions supports service <servicename> reload command, simply enter
    service naemon reload

    or

    /etc/init.d/naemon reload
  2. Manually: You can reload the Naemon process by sending it a SIGHUP signal like so:
    kill -HUP <naemon_pid>

Starting Naemon

  1. Init Script: The easiest way to start the Naemon daemon is by using the init script like so:
    service naemon start

    or

    /etc/init.d/naemon start
  2. Manually: You can start the Naemon daemon manually with the -d command line option like so:
    /usr/bin/naemon -d /etc/naemon/naemon.cfg

Restarting Naemon

Restarting/reloading is necessary when you modify your configuration files and want those changes to take effect.

  1. Init Script: The easiest way to restart the Naemon daemon is by using the init script like so:
    service naemon restart

    or

    /etc/init.d/naemon restart
  2. Web Interface: You can restart the Naemon through the web interface by clicking the “Process Info” navigation link and selecting “Restart the Backend process”:

    Restart the Backend process

Stopping Naemon

  1. Init Script: The easiest way to stop the Naemon daemon is by using the init script like so:
    service naemon stop

    or

    /etc/init.d/naemon stop
  2. Web Interface: You can stop the Naemon through the web interface by clicking the “Process Info” navigation link and selecting “Shutdown the Backend process”:

    Shutdown the Backend process

  3. Manually: You can stop the Naemon process by sending it a SIGTERM signal like so:
    kill <naemon_pid>