FreeBSD Bugzilla – Attachment 132655 Details for
Bug 176995
[patch] add config testing to net/quagga rc script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 977 bytes, created by
Alexander Brovikov
on 2013-03-15 15:00:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Alexander Brovikov
Created:
2013-03-15 15:00:00 UTC
Size:
977 bytes
patch
obsolete
>--- /usr/local/etc/rc.d/quagga.orig 2013-03-15 16:49:13.000000000 +0600 >+++ /usr/local/etc/rc.d/quagga 2013-03-15 20:50:59.000000000 +0600 >@@ -32,6 +32,20 @@ > > start_postcmd=start_postcmd > stop_postcmd=stop_postcmd >+configtest_cmd="check_config" >+extra_commands="configtest" >+ >+check_config() { >+ echo Checking $daemon.conf >+ $command $daemon_flags -C >+ result=$? >+ if [ "$result" -eq "0" ]; then >+ echo OK >+ else >+ echo FAILED >+ exit >+ fi >+} > > start_postcmd() > { >@@ -61,6 +75,9 @@ > command=/usr/local/sbin/${daemon} > required_files=/usr/local/etc/quagga/${daemon}.conf > pidfile=/var/run/quagga/${daemon}.pid >+ if [ ${quagga_cmd} = "restart" -o ${quagga_cmd} = "start" ]; then >+ check_config >+ fi > if [ ${quagga_cmd} = "start" -a ! -f ${required_files} ]; then > continue > fi
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 176995
: 132655