change service type to forking
(cherry picked from commit 691dd9f5f53ec5245e01431160b6954674da8af8)
This commit is contained in:
parent
25d553763a
commit
738d8f0d9a
@ -3,6 +3,7 @@ Description=Argus generates network transaction audit records
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/argus.pid
|
||||
ExecStart=/usr/sbin/argus -d
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
%global clientversion 3.0.8.2
|
||||
Name: argus
|
||||
Version: 3.0.8.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Network transaction audit tool
|
||||
License: GPLv2+
|
||||
Url: http://qosient.com/argus
|
||||
@ -61,9 +61,9 @@ popd
|
||||
%{__install} -d -m 0755 %{buildroot}/%{_localstatedir}/lib/argus/archive
|
||||
%{__install} -D -m 0644 support/Config/argus.conf %{buildroot}/%{_sysconfdir}/argus.conf
|
||||
%{__install} -D -m 0644 %{SOURCE2} %{buildroot}/%{_unitdir}/argus.service
|
||||
%{__sed} -i 's|#ARGUS_SET_PID|ARGUS_SET_PID|' %{buildroot}/%{_sysconfdir}/argus.conf
|
||||
%{__sed} -i 's|#ARGUS_PID_PATH|ARGUS_PID_PATH|' %{buildroot}/%{_sysconfdir}/argus.conf
|
||||
%{__sed} -i 's|var/log/argus|var/lib/argus|' %{buildroot}/%{_sysconfdir}/argus.conf
|
||||
%{__sed} -i 's|#ARGUS_BIND_IP|ARGUS_BIND_IP|' %{buildroot}/%{_sysconfdir}/argus.conf
|
||||
%{__sed} -i 's|#ARGUS_ACCESS_PORT|ARGUS_ACCESS_PORT|' %{buildroot}/%{_sysconfdir}/argus.conf
|
||||
find support -type f -exec chmod a-x '{}' \;
|
||||
rm -rf %{buildroot}/usr/share/doc/argus-clients-3.0/
|
||||
mv %{buildroot}/usr/argus %{buildroot}%{_datadir}/argus
|
||||
@ -109,5 +109,8 @@ mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
|
||||
%{_includedir}/argus/
|
||||
|
||||
%changelog
|
||||
* Wed Mar 01 2023 Ge Wang <wangge20@h-partners.com> - 3.0.8.2-2
|
||||
- change service type to forking
|
||||
|
||||
* Mon Sep 6 2021 wulei <wulei80@huawei.com> - 3.0.8.2-1
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user