Page MenuHomeFreeBSD

init: execute /etc/rc.final after all user processes have terminated
ClosedPublic

Authored by kevans on Jul 20 2021, 11:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 19, 2:00 AM
Unknown Object (File)
Sun, May 18, 11:40 AM
Unknown Object (File)
Apr 20 2025, 1:36 AM
Unknown Object (File)
Apr 18 2025, 11:47 PM
Unknown Object (File)
Apr 14 2025, 4:48 AM
Unknown Object (File)
Apr 13 2025, 7:26 PM
Unknown Object (File)
Apr 5 2025, 1:14 AM
Unknown Object (File)
Mar 15 2025, 9:55 AM
Subscribers

Details

Summary

This can be useful for, e.g., unmounting filesystems that were needed
for shutdown.

Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
X-NetApp-PR: #63

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

gbe added a subscriber: gbe.

LGTM for the man page part.

sbin/init/init.c
2061

I suggest to also check that +x bit it enabled

2077

s/ 0/NULL/ ? And perhaps without the cast?

2080

may be, say which file you execed so user understand why execl failed.

2085

Again, NULL instead of (int *)0?

kevans marked 4 inline comments as done.

Address feedback from kib

sbin/init/init.c
2061

Tossed in a warning() if it exists as non-executable

This revision is now accepted and ready to land.Jul 21 2021, 10:05 PM