Category:Daemons
Subscribe

From OpenNMS

Jump to: navigation, search

Controlling daemons

Startup and Shutdown

The daemons are controlled at startup and shutdown of the main OpenNMS JVM by the service-configuration.xml configuration file (this also controls how status information, if any, is gathered for the daemons).

Remote control with JMX

The daemons can also be controlled remotely with JMX once the main OpenNMS JVM is running. This is used by the opennms.sh startup/shutdown script to tell OpenNMS to begin shutting down and to get status information. It can also be used to restart individual services after making a configuration change. Here is an example of restarting the RTC daemon (based on a post by User:Tarus to the discuss list on 2006-01-05):

  wget --proxy=off -O /dev/null "http://manager:manager@localhost:8181/invoke?objectname=OpenNMS%3AName%3DRtcd&operation=stop"
  wget --proxy=off -O /dev/null "http://manager:manager@localhost:8181/invoke?objectname=OpenNMS%3AName%3DRtcd&operation=init"
  wget --proxy=off -O /dev/null "http://manager:manager@localhost:8181/invoke?objectname=OpenNMS%3AName%3DRtcd&operation=start"