Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 2021 10:27:38 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e0b0299057af - stable/13 - rc.d/auditd: set pidfile
Message-ID:  <202103171027.12HARcBg095940@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=e0b0299057afb2422afa2291d9e5c42aab8f718e

commit e0b0299057afb2422afa2291d9e5c42aab8f718e
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-01-28 17:17:07 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-03-17 09:53:17 +0000

    rc.d/auditd: set pidfile
    
    auditd creates a pidfile so we should use it for status checks.
    This also seems to speed up the frequent onestatus checks used in
    tests/sys/audit.
    
    Reviewed By:    asomers
    Differential Revision: https://reviews.freebsd.org/D28389
    
    (cherry picked from commit bcc5b2445674e4691853d7533e4873a6712f67ee)
---
 libexec/rc/rc.d/auditd | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libexec/rc/rc.d/auditd b/libexec/rc/rc.d/auditd
index 637214282de0..084b2b764655 100755
--- a/libexec/rc/rc.d/auditd
+++ b/libexec/rc/rc.d/auditd
@@ -16,6 +16,7 @@ name="auditd"
 desc="Audit daemon"
 stop_cmd="auditd_stop"
 command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
 rcvar="auditd_enable"
 command_args="${auditd_flags}"
 required_files="/etc/security/audit_class /etc/security/audit_control



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103171027.12HARcBg095940>