From 8c1e6ff7e826be34ae75e55453f58aea2d137dbc Mon Sep 17 00:00:00 2001 From: thompsa Date: Thu, 25 Mar 2010 22:07:45 +1300 Subject: Add comments decsribing the pkill doesnt actually kill anything real. --- config/openospfd/openospfd.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config') 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"); } -- cgit v1.2.3