2 # Startskript for OMD sites
5 # Provides: omd-###OMD_VERSION###
6 # Required-Start: $syslog
7 # Required-Stop: $syslog
8 # Default-Start: 2 3 4 5
10 # Short-Description: OMD sites
11 # Description: Start and stop the sites of the OpenSource Monitoring
15 # -- start omd, if not disabled in /etc/default/omd
17 [ -r /etc
/default
/omd
] && .
/etc
/default
/omd
19 VERSION
=###OMD_VERSION###
21 MSG
="using omd version $VERSION"
22 OMD
="/omd/versions/$VERSION/bin/omd"
26 if [ "$AUTOSTART" = "1" ]; then
27 echo "Starting all OMD monitoring sites $MSG:"
30 echo "OMD autostart disabled, skipping ..."
34 echo "Stopping all OMD monitoring sites $MSG:"
38 echo "Restarting all OMD monitoring sites $MSG:"
42 echo "Reloading all OMD monitoring sites $MSG:"
46 echo "Checking state of all OMD monitoring sites $MSG:"
50 echo "usage: $PROGNAME start|stop|restart|reload|status"
54 echo "Doing $1 on all OMD monitoring sites $MSG:"