summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorrbalocca <rbalocca@vyatta.com>2008-04-21 16:31:29 -0700
committerrbalocca <rbalocca@vyatta.com>2008-04-21 16:31:29 -0700
commit8328b5607db0e3e8c7cc0cd2ad035475e3dc0887 (patch)
tree680e7a90962bc3a627de58ad79db87af31e9aab4 /scripts
parentb2fb9963d1b65ac4b32ada1742cd1ba24fa8c739 (diff)
parent69b0e51b4a3afeb6cf1fb8893c3e705412d988b0 (diff)
downloadvyatta-cfg-quagga-8328b5607db0e3e8c7cc0cd2ad035475e3dc0887.tar.gz
vyatta-cfg-quagga-8328b5607db0e3e8c7cc0cd2ad035475e3dc0887.zip
Merge branch 'glendale' into hollywood
Conflicts: templates/interfaces/loopback/node.tag/ip/ospf/network/node.def templates/protocols/bgp/node.tag/parameters/confederation/peers/node.def
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-linkstatus.pl9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/vyatta-linkstatus.pl b/scripts/vyatta-linkstatus.pl
index 25c1adfb..a1381850 100644
--- a/scripts/vyatta-linkstatus.pl
+++ b/scripts/vyatta-linkstatus.pl
@@ -90,7 +90,8 @@ unlink($exclude_lck_file);
#finally kick the process
-open(PID, "< /var/run/vyatta/quagga/watchlink.pid") || die "could not open '/var/run/vyatta/quagga/watchlink.pid'";
-my $foo = <PID>;
-system "kill -10 $foo";
-close(PID);
+if (open(PID, "< /var/run/vyatta/quagga/watchlink.pid")) {
+ my $foo = <PID>;
+ system "kill -10 $foo";
+ close(PID);
+}