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:
Ad Schellevis 2020-08-17 12:07:18 +02:00
parent 80696b3be7
commit 3a538fb197

View File

@ -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'),