change rsyslog.service file

This commit is contained in:
19909236985 2021-08-26 15:17:38 +08:00
parent aab9e26386
commit 0769d6f60a
3 changed files with 10 additions and 4 deletions

View File

@ -9,7 +9,7 @@ Documentation=https://www.rsyslog.com/doc/
[Service]
Type=notify
EnvironmentFile=-/etc/sysconfig/rsyslog
ExecStart=/usr/sbin/rsyslogd -n $SYSLOGD_OPTIONS
ExecStart=/usr/sbin/rsyslogd -n -i/var/run/rsyslogd.pid $SYSLOGD_OPTIONS
Restart=on-failure
UMask=0066
StandardOutput=null
@ -20,4 +20,4 @@ LimitNOFILE=16384
[Install]
WantedBy=multi-user.target
;Alias=syslog.service
;Alias=syslog.service

View File

@ -4,7 +4,7 @@
Name: rsyslog
Version: 8.2012.0
Release: 3
Release: 4
Summary: The rocket-fast system for log processing
License: (GPLv3+ and ASL 2.0)
URL: http://www.rsyslog.com/
@ -358,6 +358,12 @@ done
%{_mandir}/man1/rscryutil.1.gz
%changelog
* Thu Aug 26 2021 wuchaochao <wuchaochao4@huawei.com> - 8.2012.0-4
- Type:NA
- ID:NA
- SUG:restart
- DESC:remove RSYSLOG_OPTIONS and change rsyslog.service files
* Wed Aug 25 2021 wuchaochao <wuchaochao4@huawei.com> - 8.2012.0-3
- Type:NA
- ID:NA

View File

@ -2,4 +2,4 @@
# Syslogd options are deprecated since rsyslog v3.
# If you want to use them, switch to compatibility mode 2 by "-c 2"
# See rsyslogd(8) for more details
SYSLOGD_OPTIONS="-i/var/run/rsyslogd.pid"
SYSLOGD_OPTIONS=""