<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rc, branch releng/13.5</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.5</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.5'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-12-31T13:17:46Z</updated>
<entry>
<title>rc.d/sendmail: Fix error with some configurations</title>
<updated>2024-12-31T13:17:46Z</updated>
<author>
<name>Tijl Coosemans</name>
<email>tijl@FreeBSD.org</email>
</author>
<published>2024-12-03T10:45:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=242eb8d4e0095f7d922ecec78b7a3c91a6e2d99c'/>
<id>urn:sha1:242eb8d4e0095f7d922ecec78b7a3c91a6e2d99c</id>
<content type='text'>
The sendmail startup script can run 4 daemons: sendmail, sendmail_submit,
sendmail_outbound, and sendmail_msp_queue.  Of the first 3 at most one
can be enabled.  There's a run_rc_command call for each and the ones for
sendmail and sendmail_msp_queue run unconditionally.  For some rc
commands this triggers warnings or errors when sendmail_enable="NO" or
sendmail_msp_queue_enable="NO".  Since d2e7bb630b83 these errors are
propagated and the whole script fails.

Fix this by first determining which daemons are enabled, setting ${name}
and ${rcvar} accordingly, and then always calling run_rc_command
conditionally.

Also replace ${name}.cf with sendmail.cf because ${name} isn't always
sendmail.

PR:		282585
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D47757

(cherry picked from commit 6b17d944a1d448dbb797c5fa5b0778242ba02e52)
</content>
</entry>
<entry>
<title>rc.d/var_run: Add missing $(dirname)</title>
<updated>2024-12-04T17:09:41Z</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2024-11-25T17:11:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2904d7309b3d013b5a1d4279d7bfb32e44666dcd'/>
<id>urn:sha1:2904d7309b3d013b5a1d4279d7bfb32e44666dcd</id>
<content type='text'>
We intend to create the containing directory here. Fix this typo.

PR:		282939

(cherry picked from commit 4d58cf6ff905377dbca1ecf004f53133e6b57a46)
</content>
</entry>
<entry>
<title>ipfilter: Set ipf -T optionlist at boot</title>
<updated>2024-11-19T00:27:06Z</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2024-10-30T19:28:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6739198793e469f9f9c414ddad49b7c0e08eb03e'/>
<id>urn:sha1:6739198793e469f9f9c414ddad49b7c0e08eb03e</id>
<content type='text'>
There is no easy way to set ipfilter optionlist variables during boot.
Add plumbing to the rc script to support this.

PR:			130555
Reviewed by:		jlduran
Differential Revision:	https://reviews.freebsd.org/D47346

(cherry picked from commit 8d6feaaaa26f444abb209360e52b993e39cb81bb)
</content>
</entry>
<entry>
<title>rc.d/sendmail: Return non-zero if the daemon fails to start or is not running</title>
<updated>2024-11-04T14:55:55Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2024-10-21T10:10:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d36998a6cc6853e54066d476d146e1b510976418'/>
<id>urn:sha1:d36998a6cc6853e54066d476d146e1b510976418</id>
<content type='text'>
If you have a mail server that is running sendmail daemon
(sendmail_enable=YES) and sendmail queue runner (sendmail_msp_queue=YES)
and the sendmail daemon dies, /etc/rc.d/sendmail status does see the
daemon is not running but returns 0 as the exit code.  This prevents
other programs (like puppet) from restarting sendmail to fix the issue.

Make sure that the exit code is propagated towards the end of the script
if any of the sendmail services fail.

This patch does not call exit directly but instead just sets the exit
status code by calling exit in a subshell. This way we do not exit the
current shell in case the service script is sourced (e.g., when
rc_fast_and_loose is active).

PR:		223132
MFC after:	2 weeks
Reported by:	pirzyk
Discussed with:	jilles, eugen
Reviewed by:	christos, gshapiro (previous version), markj
Approved by:	christos (mentor), markj (mentor)
Differential Revision:	https://reviews.freebsd.org/D46862
Co-authored-by: Jim Pirzyk &lt;pirzyk@FreeBSD.org&gt;

(cherry picked from commit d2e7bb630b83848a774d8213014a9e0747775019)
</content>
</entry>
<entry>
<title>libexec/rc/rc.d/netif: Typo fix</title>
<updated>2024-10-31T00:58:21Z</updated>
<author>
<name>Robert William Vesterman</name>
<email>bob@vesterman.com</email>
</author>
<published>2024-10-18T02:54:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a151fecbd52d5b2a517286082e66ddbbcb020d20'/>
<id>urn:sha1:a151fecbd52d5b2a517286082e66ddbbcb020d20</id>
<content type='text'>
Just fixing a typo ("configuriing" =&gt; "configuring").

Pull Request:	https://github.com/freebsd/freebsd-src/pull/1484

(cherry picked from commit 65691b2dafda23691c3989749def755a98e731ec)
</content>
</entry>
<entry>
<title>rc/tests: Skip oomprotect tests in a jail</title>
<updated>2024-10-28T12:46:05Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2024-10-14T10:28:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0313a36cb9d60c1f2a197bfc186dc4dd6515a71d'/>
<id>urn:sha1:0313a36cb9d60c1f2a197bfc186dc4dd6515a71d</id>
<content type='text'>
oomprotect cannot be used in a jail.

Reviewed by:	bnovkov, christos, markj
Approved by:	bnovkov (mentor), christos (mentor), markj (mentor)
MFC after:	1 week

(cherry picked from commit 6fa42b91ca3f481912af98c4d49c44507eb1b8e1)
</content>
</entry>
<entry>
<title>rc.d/sendmail: Fix stopping service during shutdown</title>
<updated>2024-10-14T10:23:44Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2024-10-04T12:26:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4fc260561e84edf5df13d4ba3aa829e5750c9f6e'/>
<id>urn:sha1:4fc260561e84edf5df13d4ba3aa829e5750c9f6e</id>
<content type='text'>
The sendmail service script needs to be stopped during shutdown
to ensure a clean shutdown of active SMTP connections (and writing
any in memory queue files).

rcorder(8) requires the rcorder block to be an uninterrupted sequence of
REQUIRE, PROVIDE, BEFORE, and KEYWORD lines. Having a comment in between
REQUIRE and KEYWORD makes rcorder stop parsing the block when it reaches
the comment.

Fix that by moving the comment out from the rcorder block.

Reviewed by:	bnovkov, christos, gshapiro, markj
Approved by:	bnovkov (mentor), christos (mentor), markj (mentor)
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D46924

(cherry picked from commit 8751fbe36ff02ed695f02132ee6eac723d2bbe3f)
</content>
</entry>
<entry>
<title>rc.subr: Consistently use an absolute path for sysrc</title>
<updated>2024-10-02T09:27:05Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2024-09-20T09:27:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=35d8a02eead8a3fb4da232ad27935834d135b3ae'/>
<id>urn:sha1:35d8a02eead8a3fb4da232ad27935834d135b3ae</id>
<content type='text'>
MFC after:	2 weeks
Approved by:	christos

(cherry picked from commit 401516dbc54e4a4cba3085cd605fbf6cf8293b79)
</content>
</entry>
<entry>
<title>rc: network.subr update consitency with older change (v6/v4 order)</title>
<updated>2024-09-28T11:07:58Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2024-09-04T19:03:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=267ad286efd8454e08916e0bb30f76954100d379'/>
<id>urn:sha1:267ad286efd8454e08916e0bb30f76954100d379</id>
<content type='text'>
As of 1b5be7204eaeeaf58eefdebe5b308f90792c693b we setup parts of IPv6
before IPv4 if configured.  For consistency change a case in ifn_start()
calling ipv6_up() before ipv4_up() and reverse in ifn_stop().

Reviewed by:	zlei
Differential Revision: https://reviews.freebsd.org/D33426

(cherry picked from commit ed4d2a54fc7a0397c2042f496f176305ca03ebdd)
</content>
</entry>
<entry>
<title>Remove "All Rights Reserved" from FreeBSD Foundation copyrights</title>
<updated>2024-09-07T16:30:19Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-07-30T16:02:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6b9c7f29b0cdf0da752927ca173f590cdf385c89'/>
<id>urn:sha1:6b9c7f29b0cdf0da752927ca173f590cdf385c89</id>
<content type='text'>
These ones were unambiguous cases where the Foundation was the only
listed copyright holder.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 5c2bc3db201a4fe8d7911cf816bea104d5dc2138)
(cherry picked from commit f06d322e9d925ab56a4aa8210a67637d4d341ab6)
</content>
</entry>
</feed>
