~ubuntu-branches/ubuntu/trusty/nagios3/trusty

« back to all changes in this revision

Viewing changes to debian/nagios3-common.nagios3.init

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2011-05-22 09:29:56 UTC
  • Revision ID: james.westby@ubuntu.com-20110522092956-dzoo5wh1usatzzr7
Tags: 3.2.3-2
* Fix status function of initscript
* Allow deconfiguration of webservers via debconf (Closes: #591786)
* Add ExecCGI for index.php (Closes: #584696)
* Add danish po translation (Closes: #605520)
* Add option in default file to disable nagios3 at boottime (Closes:
  #602490)
* [c01bde3] Enable hardening.
  Thanks to Kees Cook (Closes: #542727)

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
[ -n "$THEPIDFILE" ] || THEPIDFILE='/var/run/nagios3/nagios.pid'
125
125
 
126
126
start () {
 
127
 
 
128
  if [ "$ENABLED" = "no"  ]; then
 
129
          log_warning_msg "Not starting Nagios3 - set ENABLED to yes in /etc/defrault/nagios3"
 
130
          exit 0
 
131
  fi
 
132
 
127
133
  DIRECTORY=$(dirname $THEPIDFILE)
128
134
  [ ! -d $DIRECTORY ] && mkdir -p $DIRECTORY
129
135
  chown nagios:nagios $DIRECTORY
206
212
 fi
207
213
}
208
214
 
209
 
status () {
210
 
   $DAEMON -v $NAGIOSCFG
211
 
}
212
 
 
213
215
case "$1" in
214
216
  start)
215
217
    log_daemon_msg "Starting $DESC" "$NAME"