mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
Syslog: rename syslog service description and hide legacy mode when not enabled. ref https://github.com/opnsense/core/issues/4263
This commit is contained in:
parent
80696b3be7
commit
3a538fb197
@ -79,19 +79,21 @@ function core_services()
|
||||
'name' => 'login',
|
||||
);
|
||||
|
||||
$services[] = array(
|
||||
'description' => gettext('Local Syslog'),
|
||||
'php' => array(
|
||||
"stop" => array('system_syslogd_stop'),
|
||||
"start" => array('system_syslogd_start'),
|
||||
"restart" => array('system_syslogd_start')
|
||||
),
|
||||
'pidfile' => '/var/run/syslog.pid',
|
||||
'name' => 'syslogd',
|
||||
);
|
||||
if (empty($config['syslog']['disable_clog'])) {
|
||||
$services[] = array(
|
||||
'description' => gettext('Local Syslog (legacy mode)'),
|
||||
'php' => array(
|
||||
"stop" => array('system_syslogd_stop'),
|
||||
"start" => array('system_syslogd_start'),
|
||||
"restart" => array('system_syslogd_start')
|
||||
),
|
||||
'pidfile' => '/var/run/syslog.pid',
|
||||
'name' => 'syslogd',
|
||||
);
|
||||
}
|
||||
|
||||
$services[] = array(
|
||||
'description' => gettext('Remote Syslog'),
|
||||
'description' => gettext('Syslog'),
|
||||
'php' => array(
|
||||
"stop" => array('system_syslogd_stop'),
|
||||
"start" => array('system_syslogd_start'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user