FreeBSD Bugzilla – Attachment 53689 Details for
Bug 81220
MAINTAINER UPDATE: net-mgmt/nagios
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.13 KB, created by
Blaz Zupan
on 2005-05-18 21:40:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Blaz Zupan
Created:
2005-05-18 21:40:03 UTC
Size:
1.13 KB
patch
obsolete
>diff -urN nagios.old/Makefile nagios/Makefile >--- nagios.old/Makefile Tue Apr 5 19:17:52 2005 >+++ nagios/Makefile Wed May 18 22:27:53 2005 >@@ -7,6 +7,7 @@ > > PORTNAME= nagios > PORTVERSION= 2.0.b3 >+PORTREVISION= 1 > CATEGORIES= net-mgmt > MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} > MASTER_SITE_SUBDIR=nagios >diff -urN nagios.old/files/nagios.sh.tmpl nagios/files/nagios.sh.tmpl >--- nagios.old/files/nagios.sh.tmpl Mon Feb 14 22:52:42 2005 >+++ nagios/files/nagios.sh.tmpl Wed May 18 22:27:33 2005 >@@ -34,14 +34,30 @@ > > start_precmd=start_precmd > stop_postcmd=stop_postcmd >+restart_precmd=nagios_checkconfig > > # set defaults > > nagios_enable=${nagios_enable:-"NO"} > nagios_flags=${nagios_flags:-""} > >+nagios_checkconfig() >+{ >+ echo -n 'Performing sanity check on Nagios configuration: ' >+ $NagiosBin -v $NagiosCfg > /dev/null 2>&1 >+ if [ $? != 0 ]; then >+ echo 'FAILED.' >+ echo "Use '$NagiosBin -v $NagiosCfg' command for details." >+ return 1 >+ else >+ echo 'OK.' >+ fi >+} >+ > start_precmd() > { >+ nagios_checkconfig; [ $? != 0 ] && return 1 >+ > su -m ${nagios_user} -c "touch ${NagiosVar}/nagios.log ${NagiosSav}" > rm -f ${NagiosCmd} > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 81220
: 53689