opnsense-src/libexec/rc/rc.d/utx
Emmanuel Vadot eac920e670 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
2023-02-08 08:52:54 +01:00

20 lines
285 B
Bash
Executable file

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: utx
# REQUIRE: DAEMON FILESYSTEMS
# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="utx"
desc="Manage the user accounting database"
rcvar="utx_enable"
start_cmd="utx boot"
stop_cmd="utx shutdown"
load_rc_config $name
run_rc_command "$1"