View | Details | Raw Unified | Return to bug 239497
Collapse All | Expand All

(-)frr (-2 / +6 lines)
Lines 91-102 Link Here
91
	ret=0
91
	ret=0
92
	for daemon in ${frr_daemons}; do
92
	for daemon in ${frr_daemons}; do
93
	    command=/usr/sbin/${daemon}
93
	    command=/usr/sbin/${daemon}
94
	    required_files=/etc/frr/${daemon}.conf
94
	    if checkyesno frr_vtysh_boot; then
95
		required_files=/etc/frr/frr.conf
96
	    else
97
	        required_files=/etc/frr/${daemon}.conf
98
	    fi
95
	    pidfile=/var/run/frr/${daemon}.pid
99
	    pidfile=/var/run/frr/${daemon}.pid
96
	    if [ ${frr_cmd} = "restart" ] || [ ${frr_cmd} = "start" ]; then
100
	    if [ ${frr_cmd} = "restart" ] || [ ${frr_cmd} = "start" ]; then
97
		check_config
101
		check_config
98
	    fi
102
	    fi
99
	    if [ ${frr_cmd} = "start" ] && ! [ -f ${required_files} ]; then
103
	    if [ ${frr_cmd} = "start" ] && ! [ -f ${required_files} ] && ! checkyesno frr_vtysh_boot; then
100
			continue
104
			continue
101
	    fi
105
	    fi
102
	    if [ ${frr_cmd} = "stop" ] && [ -z $(check_process ${command}) ]; then
106
	    if [ ${frr_cmd} = "stop" ] && [ -z $(check_process ${command}) ]; then

Return to bug 239497