[Bug 258320] etc/rc.d/powerd: powerd_flags apparently vanished

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 07 Sep 2021 15:04:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258320

Jamie Landeg-Jones <jamie@catflap.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamie@catflap.org

--- Comment #3 from Jamie Landeg-Jones <jamie@catflap.org> ---
powerd_flags are still used.

The line: command_args="${powerd_flags}"

was removed as it's redundant - The rc subsystem automatically sets
command_args to {progname}_args

You only need to use this if setting the args from another program, eg:

/etc/rc.d/ypbind:command_args="${nis_client_flags}"

# uname -a
FreeBSD catflap.dyslexicfish.net 13.0-RELEASE FreeBSD 13.0-RELEASE #0
releng/13.0-n244733-ea31abc261f: Fri Apr  9 04:24:09 UTC 2021    
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
# 
# grep powerd /etc/rc.conf
powerd_flags="-b boo"
powerd_enable=YES
# 
# service powerd start
Starting powerd.
powerd: bad option: -b boo
/etc/rc.d/powerd: WARNING: failed to start powerd
#

Cheers Jamie

-- 
You are receiving this mail because:
You are on the CC list for the bug.