diff options
author | thompsa <andy@fud.org.nz> | 2010-03-25 22:07:45 +1300 |
---|---|---|
committer | thompsa <andy@fud.org.nz> | 2010-03-25 22:07:45 +1300 |
commit | 8c1e6ff7e826be34ae75e55453f58aea2d137dbc (patch) | |
tree | 0fa90366c6eefac71517d36ad805a270a5aab8e6 | |
parent | da79c6705e8f3cf5fb1c29dac6ea8167e5bc5410 (diff) | |
download | pfsense-packages-8c1e6ff7e826be34ae75e55453f58aea2d137dbc.tar.gz pfsense-packages-8c1e6ff7e826be34ae75e55453f58aea2d137dbc.tar.bz2 pfsense-packages-8c1e6ff7e826be34ae75e55453f58aea2d137dbc.zip |
Add comments decsribing the pkill doesnt actually kill anything real.
-rw-r--r-- | config/openospfd/openospfd.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/openospfd/openospfd.inc b/config/openospfd/openospfd.inc index c6368271..a41af0ec 100644 --- a/config/openospfd/openospfd.inc +++ b/config/openospfd/openospfd.inc @@ -178,7 +178,13 @@ function ospfd_install_conf() { // ospfd process running? if so reload, elsewise start. exec("/usr/local/sbin/ospfctl reload", $rval); if ($rval != 0) { + /* + * ospfd isnt actually running as nothing accepted a connection + * on the /var/run/ospfd.sock unix socket by ospfctl, this is + * just to ensure a clean state. Killing a live ospfd would be bad. + */ exec("/bin/pkill -x ospfd"); + // start ospfd exec("/usr/local/sbin/ospfd -f /usr/local/etc/ospfd.conf"); } |