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

(-)/usr/local/etc/rc.d/quagga 2013-03-15 20:50:59.000000000 +0600 (+17 lines)
Lines 32-37 Link Here
32
start_postcmd=start_postcmd
32
start_postcmd=start_postcmd
33
stop_postcmd=stop_postcmd
33
stop_postcmd=stop_postcmd
34
configtest_cmd="check_config"
35
extra_commands="configtest"
36
37
check_config() {
38
       echo Checking $daemon.conf
39
       $command $daemon_flags -C
40
       result=$?
41
       if [ "$result" -eq "0" ]; then
42
               echo OK
43
       else
44
               echo FAILED
45
               exit
46
       fi
47
}
34
start_postcmd()
48
start_postcmd()
35
{
49
{
Lines 61-66 Link Here
61
           command=/usr/local/sbin/${daemon}
75
           command=/usr/local/sbin/${daemon}
62
           required_files=/usr/local/etc/quagga/${daemon}.conf
76
           required_files=/usr/local/etc/quagga/${daemon}.conf
63
           pidfile=/var/run/quagga/${daemon}.pid
77
           pidfile=/var/run/quagga/${daemon}.pid
78
           if [ ${quagga_cmd} = "restart" -o ${quagga_cmd} = "start" ]; then
79
                       check_config
80
           fi
64
           if [ ${quagga_cmd} = "start" -a ! -f ${required_files} ]; then
81
           if [ ${quagga_cmd} = "start" -a ! -f ${required_files} ]; then
65
                       continue
82
                       continue
66
           fi
83
           fi

Return to bug 176995