<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rc/rc.d, branch release/13.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>rc.subr(8): MFC: introduce ${name}_offcmd</title>
<updated>2024-06-17T05:06:59+00:00</updated>
<author>
<name>Eugene Grosbein</name>
<email>eugen@FreeBSD.org</email>
</author>
<published>2024-06-02T19:13:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=61d43332e6882c6c3c3be1473d38db3a9803b32d'/>
<id>61d43332e6882c6c3c3be1473d38db3a9803b32d</id>
<content type='text'>
New variable ${name}_offcmd may be used to supply commands
executed if named service is not enabled. Previously start_precmd
could be used for such a task but now rc.subr(8) does not call it
if a service is not enabled.

Fix devd startup script to use it instead of start_precmd.

PR:		279198
Reported by:	Dmitry S. Lukhtionov
Tested by:	Dmitry S. Lukhtionov

(cherry picked from commit 32a579e4fc69a65e8901111ad5f65ec56a97dfab)
(cherry picked from commit c2db3a0c7d31116028b38b426a9b139d26cbc7e5)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
New variable ${name}_offcmd may be used to supply commands
executed if named service is not enabled. Previously start_precmd
could be used for such a task but now rc.subr(8) does not call it
if a service is not enabled.

Fix devd startup script to use it instead of start_precmd.

PR:		279198
Reported by:	Dmitry S. Lukhtionov
Tested by:	Dmitry S. Lukhtionov

(cherry picked from commit 32a579e4fc69a65e8901111ad5f65ec56a97dfab)
(cherry picked from commit c2db3a0c7d31116028b38b426a9b139d26cbc7e5)
</pre>
</div>
</content>
</entry>
<entry>
<title>kdc: Add restart option</title>
<updated>2024-04-29T12:51:11+00:00</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2024-04-18T18:56:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e750111ced0370a90f585467a79a773d20f14360'/>
<id>e750111ced0370a90f585467a79a773d20f14360</id>
<content type='text'>
Add a new kdc_restart rc variable that manages kdc (or krb5kdc) under
daemon(8). This automatically restarts the kdc should it fail, i.e.
when it's configured to use LDAP as a backend and cannot connect to its
LDAP directory.

Set kdc_restart="YES" to auto restart kdc on abnormal termination.

Set kdc_restart_delay="N" to the number of seconds to delay before
restarting the kdc. The daemon(8) default seconds applies when not set.

Reported by:		Lexi Winter &lt;lexi.freebsd@le-fay.org&gt;
PR:			278395
Differential Revision:	https://reviews.freebsd.org/D44898

(cherry picked from commit 9e248b7f645cdf05615a49cc15295df49b54d659)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new kdc_restart rc variable that manages kdc (or krb5kdc) under
daemon(8). This automatically restarts the kdc should it fail, i.e.
when it's configured to use LDAP as a backend and cannot connect to its
LDAP directory.

Set kdc_restart="YES" to auto restart kdc on abnormal termination.

Set kdc_restart_delay="N" to the number of seconds to delay before
restarting the kdc. The daemon(8) default seconds applies when not set.

Reported by:		Lexi Winter &lt;lexi.freebsd@le-fay.org&gt;
PR:			278395
Differential Revision:	https://reviews.freebsd.org/D44898

(cherry picked from commit 9e248b7f645cdf05615a49cc15295df49b54d659)
</pre>
</div>
</content>
</entry>
<entry>
<title>rc.d/kdc: Support start of MIT krb5kdc</title>
<updated>2024-01-29T00:26:13+00:00</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2024-01-20T13:52:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=02f097e7f34199813201b940ad2b608b6f36bd83'/>
<id>02f097e7f34199813201b940ad2b608b6f36bd83</id>
<content type='text'>
Some users wishing to use the MIT krb5kdc have discovered the
kdc script workaround applied to the MIT krb5 ports is insufficient.
Let's build into this rc script the smarts to determine whether
base or ports Hiemdal kdc is being invoked or the MIT krb5kdc.

While at it, remove kdc_start_precmd(). This will simplify a future
jail patch.

Suggested by:		netchild
Original patch:		netchild
Reviewed by:		emaste, netchild
Differential Revision:	https://reviews.freebsd.org/D43523

(cherry picked from commit 91f78c32befa08bf4010db7afd4407277a3e585f)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some users wishing to use the MIT krb5kdc have discovered the
kdc script workaround applied to the MIT krb5 ports is insufficient.
Let's build into this rc script the smarts to determine whether
base or ports Hiemdal kdc is being invoked or the MIT krb5kdc.

While at it, remove kdc_start_precmd(). This will simplify a future
jail patch.

Suggested by:		netchild
Original patch:		netchild
Reviewed by:		emaste, netchild
Differential Revision:	https://reviews.freebsd.org/D43523

(cherry picked from commit 91f78c32befa08bf4010db7afd4407277a3e585f)
</pre>
</div>
</content>
</entry>
<entry>
<title>ldconfig: filter out non-existing directories from default path</title>
<updated>2023-11-28T11:42:22+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2023-11-16T05:38:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9026d9e6138ad6ea3b8b52f2d555d48aebd7f8fc'/>
<id>9026d9e6138ad6ea3b8b52f2d555d48aebd7f8fc</id>
<content type='text'>
(cherry picked from commit 806e4e3273bee2e3a12ffc2e74db5c912fbd7aa9)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 806e4e3273bee2e3a12ffc2e74db5c912fbd7aa9)
</pre>
</div>
</content>
</entry>
<entry>
<title>rc.d/ldconfig: Prepend rtld stdlib paths to ldconfig(32)_paths</title>
<updated>2023-11-28T11:42:22+00:00</updated>
<author>
<name>John W. O'Brien</name>
<email>john@saltant.com</email>
</author>
<published>2023-11-12T22:45:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=481273492bbbab5ee1978a24e55b13c1f39bc560'/>
<id>481273492bbbab5ee1978a24e55b13c1f39bc560</id>
<content type='text'>
PR:			275031

(cherry picked from commit 99132daf6f70cb0cc969c555d3612547fa3cf1db)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:			275031

(cherry picked from commit 99132daf6f70cb0cc969c555d3612547fa3cf1db)
</pre>
</div>
</content>
</entry>
<entry>
<title>rc.d/hostid: remove useless cat</title>
<updated>2023-09-24T15:48:34+00:00</updated>
<author>
<name>наб</name>
<email>nabijaczleweli@nabijaczleweli.xyz</email>
</author>
<published>2022-05-30T23:18:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7af7a0d1b14e669277f704eac0b8d3f82d327a9b'/>
<id>7af7a0d1b14e669277f704eac0b8d3f82d327a9b</id>
<content type='text'>
We've already read it and validated it ‒ re-reading is wasteful

PR:		264376
(cherry picked from commit 11bd40d04af59daa7ae7feea0518081a35f07053)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We've already read it and validated it ‒ re-reading is wasteful

PR:		264376
(cherry picked from commit 11bd40d04af59daa7ae7feea0518081a35f07053)
</pre>
</div>
</content>
</entry>
<entry>
<title>rc.d/routing: Correct setting default gateway for each FIB</title>
<updated>2023-08-30T12:06:51+00:00</updated>
<author>
<name>Andrew Fengler</name>
<email>andrew.fengler@scaleengine.com</email>
</author>
<published>2023-06-26T18:40:21+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e8deaa3c6b8b98f435a07b47aaf3c546e7e876d5'/>
<id>e8deaa3c6b8b98f435a07b47aaf3c546e7e876d5</id>
<content type='text'>
There was a mistake in the previous commit, it used the incorrect
spelling of the FIB variable name and was not functional

Also corrects an issue with the IPv6 default route variable name.

Fixes:	30659d1dcbcc ("Add support for adding default routes for other FIBs")
Sponsored-by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D37685

(cherry picked from commit f81be7a8318b178e406c12d98f78cfa2a4229af7)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There was a mistake in the previous commit, it used the incorrect
spelling of the FIB variable name and was not functional

Also corrects an issue with the IPv6 default route variable name.

Fixes:	30659d1dcbcc ("Add support for adding default routes for other FIBs")
Sponsored-by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D37685

(cherry picked from commit f81be7a8318b178e406c12d98f78cfa2a4229af7)
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-23T17:43:30+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9'/>
<id>023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d0b2dbfa0ecf)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d0b2dbfa0ecf)
</pre>
</div>
</content>
</entry>
<entry>
<title>rc/WPA: driver_bsd.c: backout upstream IFF_ change and add logging</title>
<updated>2023-06-26T09:00:55+00:00</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2023-03-23T22:37:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ded53e898c7be6d610e94c1746fd22304f5c5988'/>
<id>ded53e898c7be6d610e94c1746fd22304f5c5988</id>
<content type='text'>
This reverts the state to our old supplicant logic setting or clearing
IFF_UP if needed.  In addition this adds logging for the cases in which
we do (not) change the interface state.

Depending on testing this seems to help bringing WiFi up or not log
any needed changes (which would be the expected wpa_supplicant logic
now).  People should look out for ``(changed)`` log entries (at least
if debugging the issue; this way we will at least have data points).

There is a hypothesis still pondered that the entire IFF_UP toggling
only exploits a race in net80211 (see further discssussions for more
debugging and alternative solutions see D38508 and D38753).
That may also explain why the changes to the rc startup script [1]
only helped partially for some people to no longer see the
continuous CTRL-EVENT-SCAN-FAILED.

It is highly likely that we will want further changes and until
we know for sure that people are seeing ''(changed)'' events
this should stay local.  Should we need to upstream this we'll
likely need #ifdef __FreeBSD__ around this code.

Remove ifconfig down/up workaround (bfb202c4554a) in
rc.d/wpa_supplicant as it is no longer needed.

[1] 5fcdc19a81115d975e238270754e28557a2fcfc5 and
    d06d7eb09131edea666bf049d6c0c55672726f76

Sponsored by:	The FreeBSD Foundation
Reviewed by:	cy, enweiwu (earlier)
Differential Revision: https://reviews.freebsd.org/D38807

(cherry picked from commit bfb202c4554a72383202a1a401d80721935b8c95)

Reviewed by:	bz (for wireless)
Differential Revision:	https://reviews.freebsd.org/D39257

(cherry picked from commit 052211e08c0e227277d0c4dc603bba2253eb3d73)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts the state to our old supplicant logic setting or clearing
IFF_UP if needed.  In addition this adds logging for the cases in which
we do (not) change the interface state.

Depending on testing this seems to help bringing WiFi up or not log
any needed changes (which would be the expected wpa_supplicant logic
now).  People should look out for ``(changed)`` log entries (at least
if debugging the issue; this way we will at least have data points).

There is a hypothesis still pondered that the entire IFF_UP toggling
only exploits a race in net80211 (see further discssussions for more
debugging and alternative solutions see D38508 and D38753).
That may also explain why the changes to the rc startup script [1]
only helped partially for some people to no longer see the
continuous CTRL-EVENT-SCAN-FAILED.

It is highly likely that we will want further changes and until
we know for sure that people are seeing ''(changed)'' events
this should stay local.  Should we need to upstream this we'll
likely need #ifdef __FreeBSD__ around this code.

Remove ifconfig down/up workaround (bfb202c4554a) in
rc.d/wpa_supplicant as it is no longer needed.

[1] 5fcdc19a81115d975e238270754e28557a2fcfc5 and
    d06d7eb09131edea666bf049d6c0c55672726f76

Sponsored by:	The FreeBSD Foundation
Reviewed by:	cy, enweiwu (earlier)
Differential Revision: https://reviews.freebsd.org/D38807

(cherry picked from commit bfb202c4554a72383202a1a401d80721935b8c95)

Reviewed by:	bz (for wireless)
Differential Revision:	https://reviews.freebsd.org/D39257

(cherry picked from commit 052211e08c0e227277d0c4dc603bba2253eb3d73)
</pre>
</div>
</content>
</entry>
<entry>
<title>motd: MFC: unbreak for source upgrade</title>
<updated>2023-06-26T04:26:47+00:00</updated>
<author>
<name>Eugene Grosbein</name>
<email>eugen@FreeBSD.org</email>
</author>
<published>2023-06-19T07:49:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=428647d483bb78ca8f152e5c4ef7556eec2a2c68'/>
<id>428647d483bb78ca8f152e5c4ef7556eec2a2c68</id>
<content type='text'>
In case of source upgrade path from 12.x proper merge of new /etc
installs /etc/motd.template. Becase of that, the system is left
without symlink /etc/motd -&gt; /var/run/motd but with stale /etc/motd contents.

Fix it creating symlink despite of presence of /etc/motd.template.

(cherry picked from commit 79a96e294c1acb4a2d17447a35f08647a6d09978)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In case of source upgrade path from 12.x proper merge of new /etc
installs /etc/motd.template. Becase of that, the system is left
without symlink /etc/motd -&gt; /var/run/motd but with stale /etc/motd contents.

Fix it creating symlink despite of presence of /etc/motd.template.

(cherry picked from commit 79a96e294c1acb4a2d17447a35f08647a6d09978)
</pre>
</div>
</content>
</entry>
</feed>
