Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2023 07:54:27 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: eac920e67016 - main - utx: Allow disabling user accounting
Message-ID:  <202302080754.3187sRk4038318@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by manu:

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

commit eac920e670167a2c5e56cc1737bd84666f7679e6
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2023-01-31 09:05:32 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2023-02-08 07:52:54 +0000

    utx: Allow disabling user accounting
    
    Make it possible to not run utx at boot.
    Default to yes so this is a no-op for everyone.
    
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D38292
---
 libexec/rc/rc.conf  | 1 +
 libexec/rc/rc.d/utx | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf
index a1f6a3f69e8d..f4d8bc179678 100644
--- a/libexec/rc/rc.conf
+++ b/libexec/rc/rc.conf
@@ -55,6 +55,7 @@ powerd_flags=""		# Flags to powerd (if enabled).
 tmpmfs="AUTO"		# Set to YES to always create an mfs /tmp, NO to never
 tmpsize="20m"		# Size of mfs /tmp if created
 tmpmfs_flags="-S"	# Extra mdmfs options for the mfs /tmp
+utx_enable="YES"	# Enable user accounting
 varmfs="AUTO"		# Set to YES to always create an mfs /var, NO to never
 varsize="32m"		# Size of mfs /var if created
 varmfs_flags="-S"	# Extra mount options for the mfs /var
diff --git a/libexec/rc/rc.d/utx b/libexec/rc/rc.d/utx
index 8c457a98c0c5..e3b36fe6815c 100755
--- a/libexec/rc/rc.d/utx
+++ b/libexec/rc/rc.d/utx
@@ -12,6 +12,7 @@
 
 name="utx"
 desc="Manage the user accounting database"
+rcvar="utx_enable"
 start_cmd="utx boot"
 stop_cmd="utx shutdown"
 



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