!24 add RSYSLOG_OPTIONS and organize rsyslog.service files
From: @wcc_140409 Reviewed-by: @overweight Signed-off-by: @overweight
This commit is contained in:
commit
ca31dbd8d8
@ -1,6 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=System Logging Service
|
Description=System Logging Service
|
||||||
;Requires=syslog.socket
|
;Requires=syslog.socket
|
||||||
|
Wants=network.target network-online.target
|
||||||
|
After=network.target network-online.target
|
||||||
Documentation=man:rsyslogd(8)
|
Documentation=man:rsyslogd(8)
|
||||||
Documentation=https://www.rsyslog.com/doc/
|
Documentation=https://www.rsyslog.com/doc/
|
||||||
|
|
||||||
@ -8,15 +10,14 @@ Documentation=https://www.rsyslog.com/doc/
|
|||||||
Type=notify
|
Type=notify
|
||||||
EnvironmentFile=-/etc/sysconfig/rsyslog
|
EnvironmentFile=-/etc/sysconfig/rsyslog
|
||||||
ExecStart=/usr/sbin/rsyslogd -n $SYSLOGD_OPTIONS
|
ExecStart=/usr/sbin/rsyslogd -n $SYSLOGD_OPTIONS
|
||||||
ExecReload=/usr/bin/kill -HUP $MAINPID
|
Restart=on-failure
|
||||||
UMask=0066
|
UMask=0066
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Increase the default a bit in order to allow many simultaneous
|
# Increase the default a bit in order to allow many simultaneous
|
||||||
# files to be monitored, we might need a lot of fds.
|
# files to be monitored, we might need a lot of fds.
|
||||||
LimitNOFILE=16384
|
LimitNOFILE=16384
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
;Alias=syslog.service
|
;Alias=syslog.service
|
||||||
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: rsyslog
|
Name: rsyslog
|
||||||
Version: 8.2012.0
|
Version: 8.2012.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: The rocket-fast system for log processing
|
Summary: The rocket-fast system for log processing
|
||||||
License: (GPLv3+ and ASL 2.0)
|
License: (GPLv3+ and ASL 2.0)
|
||||||
URL: http://www.rsyslog.com/
|
URL: http://www.rsyslog.com/
|
||||||
@ -358,6 +358,12 @@ done
|
|||||||
%{_mandir}/man1/rscryutil.1.gz
|
%{_mandir}/man1/rscryutil.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 25 2021 wuchaochao <wuchaochao4@huawei.com> - 8.2012.0-3
|
||||||
|
- Type:NA
|
||||||
|
- ID:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:add RSYSLOG_OPTIONS and organize rsyslog.service files
|
||||||
|
|
||||||
* Fri Jun 11 2021 shangyibin<shangyibin1@huawei.com> - 8.2012.0-2
|
* Fri Jun 11 2021 shangyibin<shangyibin1@huawei.com> - 8.2012.0-2
|
||||||
- Type:NA
|
- Type:NA
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
@ -2,4 +2,4 @@
|
|||||||
# Syslogd options are deprecated since rsyslog v3.
|
# Syslogd options are deprecated since rsyslog v3.
|
||||||
# If you want to use them, switch to compatibility mode 2 by "-c 2"
|
# If you want to use them, switch to compatibility mode 2 by "-c 2"
|
||||||
# See rsyslogd(8) for more details
|
# See rsyslogd(8) for more details
|
||||||
SYSLOGD_OPTIONS=""
|
SYSLOGD_OPTIONS="-i/var/run/rsyslogd.pid"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user