mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Optionally show journalctl output
This commit is contained in:
@@ -262,4 +262,6 @@ launchd_return=launchd agent
|
||||
launchd_econf=No launchd configuration entered
|
||||
launchd_estart=Missing server command
|
||||
|
||||
syslog_journalctl=SystemD logs
|
||||
|
||||
__norefs=1
|
||||
|
||||
18
init/syslog_logs.pl
Executable file
18
init/syslog_logs.pl
Executable file
@@ -0,0 +1,18 @@
|
||||
# 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 ( );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user