<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rc, branch stable/12</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>rc.conf: correct $ntp_leapfile_sources</title>
<updated>2023-12-16T02:34:43+00:00</updated>
<author>
<name>Philip Paeps</name>
<email>philip@FreeBSD.org</email>
</author>
<published>2023-12-07T05:48:13+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=890afd892c13d3ab13622a6b9c17ea7236217cf3'/>
<id>890afd892c13d3ab13622a6b9c17ea7236217cf3</id>
<content type='text'>
IETF is no longer serving leap-seconds.list.  Point at IANA instead.

This fixes "service ntpd fetch".

(cherry picked from commit b1c95af45488bef649e9a84890e2414ff80b3a00)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
IETF is no longer serving leap-seconds.list.  Point at IANA instead.

This fixes "service ntpd fetch".

(cherry picked from commit b1c95af45488bef649e9a84890e2414ff80b3a00)
</pre>
</div>
</content>
</entry>
<entry>
<title>rc.conf(5): add &lt;service&gt;_umask to run the service using this value</title>
<updated>2023-12-02T08:40:59+00:00</updated>
<author>
<name>Eugene Grosbein</name>
<email>eugen@FreeBSD.org</email>
</author>
<published>2022-08-28T05:45:23+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2e6541b943efb785aa6e04957e511a83b452b240'/>
<id>2e6541b943efb785aa6e04957e511a83b452b240</id>
<content type='text'>
None of tools working with login classes change umask(1)
and we had no ways to specify non-default umask for a service
not touching its startup script. This change makes in possible.

Some file-sharing services that create new files may benefit from it.

Differential:	https://reviews.freebsd.org/D36309

(cherry picked from commit 160a2f2cdda806e104c0d3194bfb84b208ad1ae8)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
None of tools working with login classes change umask(1)
and we had no ways to specify non-default umask for a service
not touching its startup script. This change makes in possible.

Some file-sharing services that create new files may benefit from it.

Differential:	https://reviews.freebsd.org/D36309

(cherry picked from commit 160a2f2cdda806e104c0d3194bfb84b208ad1ae8)
</pre>
</div>
</content>
</entry>
<entry>
<title>rc: add ${name}_setup script support</title>
<updated>2023-12-02T08:20:40+00:00</updated>
<author>
<name>Franco Fichtner</name>
<email>franco@opnsense.org</email>
</author>
<published>2022-08-15T14:41:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b1e0b0cb7ce100b317cf69ec5180660d31e25c3c'/>
<id>b1e0b0cb7ce100b317cf69ec5180660d31e25c3c</id>
<content type='text'>
Run a service-based setup script before running the start command.
Useful for automatic configuration file generation.

Reviewed by:	https://reviews.freebsd.org/D36006

(cherry picked from commit c9be47b34dd847da1d4ab0feee4a6100b2c5ea0d)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run a service-based setup script before running the start command.
Useful for automatic configuration file generation.

Reviewed by:	https://reviews.freebsd.org/D36006

(cherry picked from commit c9be47b34dd847da1d4ab0feee4a6100b2c5ea0d)
</pre>
</div>
</content>
</entry>
<entry>
<title>cleanvar: Be more careful when cleaning up /var.</title>
<updated>2023-02-20T07:18:06+00:00</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2023-02-13T04:56:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=04b24c1069a546056dc33fab1ce7b11d9bf89f14'/>
<id>04b24c1069a546056dc33fab1ce7b11d9bf89f14</id>
<content type='text'>
The cleanvar script uses find -delete to remove stale files under /var,
which could lead to unwanted removal of files in some unusual scenarios.
For example, when a mounted fdescfs(5) is present under /var/run/samba/fd,
find(1) could descend into a directory that is out of /var/run and remove
files that should not be removed.

To mitigate this, modify the script to use find -x, which restricts the
find scope to one file system only instead of descending into mounted
file systems.

PR:		269213

(cherry picked from commit 39e8c2a29a860bdb69ffcfbc06de4d4ad103b458)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The cleanvar script uses find -delete to remove stale files under /var,
which could lead to unwanted removal of files in some unusual scenarios.
For example, when a mounted fdescfs(5) is present under /var/run/samba/fd,
find(1) could descend into a directory that is out of /var/run and remove
files that should not be removed.

To mitigate this, modify the script to use find -x, which restricts the
find scope to one file system only instead of descending into mounted
file systems.

PR:		269213

(cherry picked from commit 39e8c2a29a860bdb69ffcfbc06de4d4ad103b458)
</pre>
</div>
</content>
</entry>
<entry>
<title>network.subr: Fix infinite loop</title>
<updated>2023-02-01T02:55:19+00:00</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2022-12-14T21:41:10+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3512eda8e078d1ca49f6c3ec74eb78d6f373b66b'/>
<id>3512eda8e078d1ca49f6c3ec74eb78d6f373b66b</id>
<content type='text'>
When setting up carp tunnel, using a password consisting of only the
characters used as hexadecimal characters, i.e. abc-def, there will be
an infinite loop in the shell function ifalias_af_common_handler().
To circumvent this we test for " pass ".

PR:		268378
Reported by:	jyoung15@gmail.com
Differential Revision:	https://reviews.freebsd.org/D37748

(cherry picked from commit e3e57edf4aac05d041ca55ff2f008c6109ef88d5)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When setting up carp tunnel, using a password consisting of only the
characters used as hexadecimal characters, i.e. abc-def, there will be
an infinite loop in the shell function ifalias_af_common_handler().
To circumvent this we test for " pass ".

PR:		268378
Reported by:	jyoung15@gmail.com
Differential Revision:	https://reviews.freebsd.org/D37748

(cherry picked from commit e3e57edf4aac05d041ca55ff2f008c6109ef88d5)
</pre>
</div>
</content>
</entry>
<entry>
<title>network.subr: Replace "\ " with "[[:space:]]"</title>
<updated>2023-02-01T02:55:19+00:00</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2022-12-21T16:06:02+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=82de173cbc81a09191ac23a2b2e2df3d83dd55ef'/>
<id>82de173cbc81a09191ac23a2b2e2df3d83dd55ef</id>
<content type='text'>
"[[:space:]]" is easier to read than "\ " and is conisitent with
clone_up().

Reported by:	eugen
Differential Revision:	https://reviews.freebsd.org/D37748

(cherry picked from commit fef0e429f190d396d5b3228166a012e85dd912f2)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"[[:space:]]" is easier to read than "\ " and is conisitent with
clone_up().

Reported by:	eugen
Differential Revision:	https://reviews.freebsd.org/D37748

(cherry picked from commit fef0e429f190d396d5b3228166a012e85dd912f2)
</pre>
</div>
</content>
</entry>
<entry>
<title>rc.initdiskless: Fix a typo in a comment</title>
<updated>2023-01-24T08:04:02+00:00</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2023-01-19T13:17:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2a811ae423ad1b9229f497a45332fb713858d9e3'/>
<id>2a811ae423ad1b9229f497a45332fb713858d9e3</id>
<content type='text'>
- s/attemping/attempting/

(cherry picked from commit 30985d19b00da3ea3ba808b57e5a46ce6403b8d7)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- s/attemping/attempting/

(cherry picked from commit 30985d19b00da3ea3ba808b57e5a46ce6403b8d7)
</pre>
</div>
</content>
</entry>
<entry>
<title>network.subr: Add missing brace</title>
<updated>2023-01-05T00:35:59+00:00</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2022-12-14T21:36:23+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8c7c23a6e030e02c785d3053b57d654987b5a431'/>
<id>8c7c23a6e030e02c785d3053b57d654987b5a431</id>
<content type='text'>
PR:		268378
Submitted by:	jyoung15@gmail.com
Reported by:	jyoung15@gmail.com

(cherry picked from commit 87061d3bffd1becd643b0ba9dc6f0a7699efbb39)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:		268378
Submitted by:	jyoung15@gmail.com
Reported by:	jyoung15@gmail.com

(cherry picked from commit 87061d3bffd1becd643b0ba9dc6f0a7699efbb39)
</pre>
</div>
</content>
</entry>
<entry>
<title>rc.d/var_run: Add needed "shutdown" keyword</title>
<updated>2022-09-23T00:43:36+00:00</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2022-09-20T18:44:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3815600910d2f0c2be9466462795b8d5023bc27f'/>
<id>3815600910d2f0c2be9466462795b8d5023bc27f</id>
<content type='text'>
The "shutdown" keyword invokes rcorder with the -k flag, for rc scripts
with the keyword at shutdown.

Reported by:	bdrewery
Fixes:		27b9777c28b4

(cherry picked from commit b77b3099685f27fa1da89cb5b8f376bef87b05ec)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The "shutdown" keyword invokes rcorder with the -k flag, for rc scripts
with the keyword at shutdown.

Reported by:	bdrewery
Fixes:		27b9777c28b4

(cherry picked from commit b77b3099685f27fa1da89cb5b8f376bef87b05ec)
</pre>
</div>
</content>
</entry>
<entry>
<title>libexec/rc: Add var_run rc script</title>
<updated>2022-09-12T00:43:42+00:00</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2022-08-28T12:48:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=eb3e5718bfba6e39d5dd34238b789ffaed974fad'/>
<id>eb3e5718bfba6e39d5dd34238b789ffaed974fad</id>
<content type='text'>
Users with a tmpfs /var/run will lose the directory tree state of
/var/run at reboot. This rc script will optionally (by default)
capture the state of the directory structure in /var/run prior to
shutdown and recreate it at system boot.

Alternatively a user can save the state of the /var/run directories
manually using service var_run save and disable the autosaving of
/var/run state using the var_run_autosave variable, for those
paranoid SSD users.

PR:			259585, 259699
Reported by:		freebsd@walstatt-de.de,
Reviewed by:		philip, gbe (previous version)
Differential Revision:	https://reviews.freebsd.org/D36386

(cherry picked from commit 27b9777c28b4e9474bdc500c28d04feec48fbb84)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Users with a tmpfs /var/run will lose the directory tree state of
/var/run at reboot. This rc script will optionally (by default)
capture the state of the directory structure in /var/run prior to
shutdown and recreate it at system boot.

Alternatively a user can save the state of the /var/run directories
manually using service var_run save and disable the autosaving of
/var/run state using the var_run_autosave variable, for those
paranoid SSD users.

PR:			259585, 259699
Reported by:		freebsd@walstatt-de.de,
Reviewed by:		philip, gbe (previous version)
Differential Revision:	https://reviews.freebsd.org/D36386

(cherry picked from commit 27b9777c28b4e9474bdc500c28d04feec48fbb84)
</pre>
</div>
</content>
</entry>
</feed>
