Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Sep 2021 15:04:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 258320] etc/rc.d/powerd: powerd_flags apparently vanished
Message-ID:  <bug-258320-9-6LkXxultva@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-258320-9@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258320-9-6LkXxultva>