mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
Warn syslog
and syslog-ng
user that systemd-journald
is found
This commit is contained in:
@ -22,8 +22,15 @@ if ($config{'m4_conf'}) {
|
||||
}
|
||||
|
||||
if (!-r $config{'syslog_conf'}) {
|
||||
# Suggest using a new module
|
||||
my $index_econf2;
|
||||
if (&has_command('systemctl')) {
|
||||
if (&foreign_available('logviewer')) {
|
||||
$index_econf2 = &text('index_econf2', "System Logs Viewer", "@{[&get_webprefix()]}/logviewer") . "<p><br>";
|
||||
}
|
||||
}
|
||||
# Not installed (maybe using syslog-ng)
|
||||
&ui_print_endpage(&text('index_econf', "<tt>$config{'syslog_conf'}</tt>", "../config.cgi?$module_name"));
|
||||
&ui_print_endpage($index_econf2 . &text('index_econf', "<tt>$config{'syslog_conf'}</tt>", "../config.cgi?$module_name"));
|
||||
}
|
||||
|
||||
# Display syslog rules
|
||||
|
@ -2,6 +2,7 @@ index_title=System Logs
|
||||
index_m4msg=Your system log configuration file $1 appears to contain <tt>m4</tt> directives. Before it can be edited, Webmin needs to pass the file through <tt>m4</tt> to safely remove these directives.
|
||||
index_m4=Remove m4 directives from config file
|
||||
index_econf=The syslog configuration file $1 was not found on your system. Maybe syslog is not installed, or a newer version like syslog-ng is in use, or the <a href='$2'>module configuration</a> is incorrect.
|
||||
index_econf2=The <tt>systemd-journald</tt> service was detected on your system for collecting and storing logging data. It is recommended to use a new <a href='$2'>$1</a> module instead.
|
||||
index_active=Active?
|
||||
index_tag=Program
|
||||
index_to=Log destination
|
||||
|
Reference in New Issue
Block a user