Commit 786abf3b authored by Mike Hibler's avatar Mike Hibler
Browse files

syslog/newsyslog changes for mfrisbeed and frisuploadd logfiles.

parent 9d3a3830
#!/usr/bin/perl -w #!/usr/bin/perl -w
# #
# Copyright (c) 2003-2017 University of Utah and the Flux Group. # Copyright (c) 2003-2018 University of Utah and the Flux Group.
# #
# {{{EMULAB-LICENSE # {{{EMULAB-LICENSE
# #
...@@ -224,6 +224,7 @@ $ARCHSUPPORT = @ARCHIVESUPPORT@; ...@@ -224,6 +224,7 @@ $ARCHSUPPORT = @ARCHIVESUPPORT@;
$BROWSER_CONSOLE_ENABLE = @BROWSER_CONSOLE_ENABLE@; $BROWSER_CONSOLE_ENABLE = @BROWSER_CONSOLE_ENABLE@;
$WITHZFS = @WITHZFS@; $WITHZFS = @WITHZFS@;
$WITHAMD = @WITHAMD@; $WITHAMD = @WITHAMD@;
$IMAGEUPLOADONFS = @IMAGEUPLOADONFS@;
# #
# Python/Perl paths # Python/Perl paths
......
...@@ -18,12 +18,17 @@ sub Install($$$) ...@@ -18,12 +18,17 @@ sub Install($$$)
return 0 return 0
if ($isupdate); if ($isupdate);
if ($IMAGEUPLOADONFS) {
push(@LOGFILES, "$LOGDIR/mfrisbeed.log");
push(@LOGFILES, "$LOGDIR/frisuploadd.log");
}
# Extras for Geni Racks, to handle foam stuff. # Extras for Geni Racks, to handle foam stuff.
if ($PROTOGENI_GENIRACK) { if ($PROTOGENI_GENIRACK) {
push(@LOGFILES, "/var/log/foam.log"); push(@LOGFILES, "/var/log/foam.log");
push(@LOGFILES, "/var/log/flowvisor.log"); push(@LOGFILES, "/var/log/flowvisor.log");
} }
# #
# Set up syslog # Set up syslog
# #
...@@ -105,6 +110,12 @@ sub Install($$$) ...@@ -105,6 +110,12 @@ sub Install($$$)
print SC "*.*\t\t\t\t\t\t${LOGDIR}/elvin_gateway.log\n"; print SC "*.*\t\t\t\t\t\t${LOGDIR}/elvin_gateway.log\n";
print SC "!shellinabox\n"; print SC "!shellinabox\n";
print SC "*.*\t\t\t\t\t\t${LOGDIR}/shellinabox.log\n"; print SC "*.*\t\t\t\t\t\t${LOGDIR}/shellinabox.log\n";
if ($IMAGEUPLOADONFS) {
print SC "!mfrisbeed\n";
print SC "*.*\t\t\t\t\t\t${LOGDIR}/mfrisbeed.log\n";
print SC "!frisuploadd\n";
print SC "*.*\t\t\t\t\t\t${LOGDIR}/frisuploadd.log\n";
}
if ($PROTOGENI_GENIRACK) { if ($PROTOGENI_GENIRACK) {
print SC "!foam\n"; print SC "!foam\n";
print SC "*.*\t\t\t\t\t\t/var/log/foam.log\n"; print SC "*.*\t\t\t\t\t\t/var/log/foam.log\n";
...@@ -157,6 +168,8 @@ sub Install($$$) ...@@ -157,6 +168,8 @@ sub Install($$$)
"/var/log/foam.log\t\t640 7 * 168 Z", "/var/log/foam.log\t\t640 7 * 168 Z",
"/var/log/flowvisor.log\t\t640 7 1000 * Z", "/var/log/flowvisor.log\t\t640 7 1000 * Z",
"$LOGDIR/shellinabox.log\t\t640 7 1000 * Z", "$LOGDIR/shellinabox.log\t\t640 7 1000 * Z",
"$LOGDIR/mfrisbeed.log\t\t640 7 1000 * Z",
"$LOGDIR/frisuploadd.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