Commit 2059cc21 authored by Leigh Stoller's avatar Leigh Stoller

Geni Rack; add syslog targets for foam and flowvisor logging.

parent 41df664a
......@@ -17,6 +17,12 @@ sub Install($$$)
return 0
if ($isupdate);
# Extras for Geni Racks, to handle foam stuff.
if ($PROTOGENI_GENIRACK) {
push(@LOGFILES, "/var/log/foam.log");
push(@LOGFILES, "/var/log/flowvisor.log");
}
#
# Set up syslog
#
......@@ -96,6 +102,12 @@ sub Install($$$)
print SC "*.*\t\t\t\t\t\t${LOGDIR}/pubsubd.log\n";
print SC "!elvin_gateway\n";
print SC "*.*\t\t\t\t\t\t${LOGDIR}/elvin_gateway.log\n";
if ($PROTOGENI_GENIRACK) {
print SC "!foam\n";
print SC "*.*\t\t\t\t\t\t${LOGDIR}/foam.log\n";
print SC "!flowvisor\n";
print SC "*.*\t\t\t\t\t\t${LOGDIR}/flowvisor.log\n";
}
print SC "# " . MAGIC_TESTBED_END() . "\n";
close SC;
};
......@@ -134,11 +146,14 @@ sub Install($$$)
Phase "newsyslog", "Setting up $NEWSYSLOG_CONF", sub {
DoneIfEdited($NEWSYSLOG_CONF);
AppendToFileFatal($NEWSYSLOG_CONF,
"/var/log/logins\t\t\t\t640 7 200 * Z",
"/var/log/mountd.log\t\t\t640 5 200 * Z",
"$LOGDIR/pubsubd.log\t\t\t640 5 1000 * Z",
"$LOGDIR/elvin_gateway.log\t\t\t640 5 1000 * Z",
"/var/log/tiplogs/capture.log\t\t644 7 * 168 Z");
"/var/log/logins\t\t\t\t640 7 200 * Z",
"/var/log/mountd.log\t\t\t640 5 200 * Z",
"$LOGDIR/pubsubd.log\t\t\t640 5 1000 * Z",
"$LOGDIR/elvin_gateway.log\t\t\t640 5 1000 * Z",
"/var/log/tiplogs/capture.log\t\t644 7 * 168 Z",
"/var/log/tiplogs/foam.log\t\t640 7 * 168 Z",
"/var/log/tiplogs/flowvisor.log\t\t640 7 1000 * Z",
);
};
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment