mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
19 lines
350 B
Perl
Executable File
19 lines
350 B
Perl
Executable File
# Contains a function to supply the syslog module with extra logs
|
|
|
|
do 'init-lib.pl';
|
|
|
|
# syslog_getlogs()
|
|
# Returns the output from journalctl if installed
|
|
sub syslog_getlogs
|
|
{
|
|
if (&has_command("journalctl")) {
|
|
return ( { 'cmd' => "journalctl -n 1000",
|
|
'desc' => $text{'syslog_journalctl'},
|
|
'active' => 1, } );
|
|
}
|
|
else {
|
|
return ( );
|
|
}
|
|
}
|
|
|