# HG changeset patch # User Brian Utterback # Date 1489266483 28800 # Node ID d8ba818ea11a2f707b84d01118996aa482ba336d # Parent 46d1d8095970b5c636eb8083f36497788de6522c 24352188 zebra config file hardcoded in smf service check diff -r 46d1d8095970 -r d8ba818ea11a components/quagga/patches/91-checkconffile.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/quagga/patches/91-checkconffile.patch Sat Mar 11 13:08:03 2017 -0800 @@ -0,0 +1,30 @@ +This has been reported to the Quagga community as quagga bug +879 https://bugzilla.quagga.net/show_bug.cgi?id=879 +This patch can be removed after upgrading to a version of Quagga +with bug 879 fixed. + +*** solaris/quagga.init.in +--- solaris/quagga.init.in +*************** esac +*** 149,156 **** + DAEMON_ARGS=`routeadm_daemon_args $DAEMON`; + routeadm_zebra_enable $DAEMON; + +! if [ ! -f "@sysconfdir@/${DAEMON}.conf" ] ; then +! echo "Could not find config file, @sysconfdir@/${DAEMON}.conf" + exit $SMF_EXIT_ERR_CONFIG + fi + +--- 149,160 ---- + DAEMON_ARGS=`routeadm_daemon_args $DAEMON`; + routeadm_zebra_enable $DAEMON; + +! CONF_FILE=`get_routeadm_property $SMF_FMRI config_file` +! if [ -z "$CONF_FILE" ] ; then +! CONF_FILE="@sysconfdir@/${DAEMON}.conf" +! fi +! if [ ! -f "$CONF_FILE" ] ; then +! echo "Could not find config file, $CONF_FILE" + exit $SMF_EXIT_ERR_CONFIG + fi +