!3 change service type to forking

From: @wang--ge 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-03-01 07:35:41 +00:00 committed by Gitee
commit 3093bfba5d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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