Skip to content

Commit

Permalink
ovs-vswitchd: Don't register for SIGHUP.
Browse files Browse the repository at this point in the history
We are registering an interest in SIGHUP to reopen
log files. But there is an 'ovs-appctl vlog/reopen'
command that does the same and is used in the
logrotate config for the distributions.

So remove the redundant functionality.

Signed-off-by: Gurucharan Shetty <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
shettyg committed Feb 22, 2014
1 parent 6b59b54 commit 0b114fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Post-v2.1.0
- New "check-ryu" Makefile target for running Ryu tests for OpenFlow
controllers against Open vSwitch. See INSTALL for details.
- Added IPFIX support for SCTP flows and templates for ICMPv4/v6 flows.
- Upon the receipt of a SIGHUP signal, ovs-vswitchd no longer reopens its
log file (it will terminate instead). Please use 'ovs-appctl vlog/reopen'
instead.


v2.1.0 - xx xxx xxxx
Expand Down
3 changes: 0 additions & 3 deletions vswitchd/ovs-vswitchd.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ switching across each bridge described in its configuration files. As
the database changes, \fBovs\-vswitchd\fR automatically updates its
configuration to match.
.PP
Upon receipt of a SIGHUP signal, \fBovs\-vswitchd\fR reopens its log
file, if one was specified on the command line.
.PP
\fBovs\-vswitchd\fR switches may be configured with any of the following
features:
.
Expand Down
7 changes: 0 additions & 7 deletions vswitchd/ovs-vswitchd.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include "openflow/openflow.h"
#include "ovsdb-idl.h"
#include "poll-loop.h"
#include "signals.h"
#include "simap.h"
#include "stream-ssl.h"
#include "stream.h"
Expand Down Expand Up @@ -65,7 +64,6 @@ main(int argc, char *argv[])
{
char *unixctl_path = NULL;
struct unixctl_server *unixctl;
struct signal *sighup;
char *remote;
bool exiting;
int retval;
Expand All @@ -75,7 +73,6 @@ main(int argc, char *argv[])
service_start(&argc, &argv);
remote = parse_options(argc, argv, &unixctl_path);
signal(SIGPIPE, SIG_IGN);
sighup = signal_register(SIGHUP);
ovsrec_init();

daemonize_start();
Expand All @@ -101,9 +98,6 @@ main(int argc, char *argv[])

exiting = false;
while (!exiting) {
if (signal_poll(sighup)) {
vlog_reopen_log_file();
}
memory_run();
if (memory_should_report()) {
struct simap usage;
Expand All @@ -117,7 +111,6 @@ main(int argc, char *argv[])
unixctl_server_run(unixctl);
netdev_run();

signal_wait(sighup);
memory_wait();
bridge_wait();
unixctl_server_wait(unixctl);
Expand Down

0 comments on commit 0b114fa

Please sign in to comment.