Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
2059cc21
Commit
2059cc21
authored
Dec 03, 2012
by
Leigh B Stoller
Browse files
Geni Rack; add syslog targets for foam and flowvisor logging.
parent
41df664a
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/phases/ops/syslog
View file @
2059cc21
...
...
@@ -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",
);
};
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment