Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 362033

Summary: app-admin/monit init.d option to include configtest
Product: Gentoo Linux Reporter: Oleg Gawriloff <barzog>
Component: New packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Oleg Gawriloff 2011-04-05 09:53:20 UTC
It would be nice that monit.initd include option for configtest. Smth like this:

opts="${opts} reload configtest"

configtest() {
        /usr/bin/monit -t 1>/dev/null 2>&1
        ret=$?
        if [ $ret -ne 0 ]; then
                eerror "${SVCNAME} has detected an error in your setup:"
                /usr/bin/monit -t
        fi
        return $ret
}


Reproducible: Always
Comment 1 Patrick Lauer gentoo-dev 2011-04-13 15:40:44 UTC
+  13 Apr 2011; Patrick Lauer <patrick@gentoo.org> +files/monit.initd-5.0-r1,
+  +monit-5.2.3-r1.ebuild:
+  init script fix for #362033


Excellent idea. Thanks!