From eac920e670167a2c5e56cc1737bd84666f7679e6 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Tue, 31 Jan 2023 10:05:32 +0100 Subject: [PATCH] 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 a1f6a3f69e8..f4d8bc17967 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 8c457a98c0c..e3b36fe6815 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"