diff --git a/argus.service b/argus.service index c097432f8141192c4b45ea72513a214fea436bad..43e4ee6feeea46c305842748d43d335fa8e784ed 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 19b172c51ce33fbd33949285d1a25e97817c6f34..c3ef6918b7b1eeabd824a46e8c5d469057e464ec 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