From 1cea2e298e621d2ca42a8e1e8e3c2644e3e37b7b Mon Sep 17 00:00:00 2001 From: wang--ge Date: Wed, 1 Mar 2023 15:04:53 +0800 Subject: [PATCH] change service type to forking --- argus.service | 1 + argus.spec | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/argus.service b/argus.service index c097432..43e4ee6 100644 --- a/argus.service +++ b/argus.service @@ -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 diff --git a/argus.spec b/argus.spec index 19b172c..c3ef691 100644 --- a/argus.spec +++ b/argus.spec @@ -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 - 3.0.8.2-2 +- change service type to forking + * Mon Sep 6 2021 wulei - 3.0.8.2-1 - package init -- Gitee