diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2023-01-31 09:05:32 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2023-02-08 07:52:54 +0000 |
commit | eac920e670167a2c5e56cc1737bd84666f7679e6 (patch) | |
tree | 9faab7e9b53709d7489222bb7b90a590c1baf00b | |
parent | cab549c76c8822be2850f048a2f80d5a174f5910 (diff) | |
download | src-eac920e670167a2c5e56cc1737bd84666f7679e6.tar.gz src-eac920e670167a2c5e56cc1737bd84666f7679e6.zip |
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
-rw-r--r-- | libexec/rc/rc.conf | 1 | ||||
-rwxr-xr-x | libexec/rc/rc.d/utx | 1 |
2 files changed, 2 insertions, 0 deletions
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" |