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
F169245773: D31230.id92610.diff
Tue, Sep 1, 1:21 AM
F169113368: D31230.id92666.diff
Mon, Aug 31, 11:05 AM
Unknown Object (File)
Mon, Aug 31, 12:03 AM
Unknown Object (File)
Sun, Aug 30, 9:09 PM
Unknown Object (File)
Sun, Aug 30, 2:55 PM
Unknown Object (File)
Fri, Aug 28, 8:21 PM
Unknown Object (File)
Thu, Aug 27, 6:49 PM
Unknown Object (File)
Wed, Aug 26, 7:15 PM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40615
Build 37504: arc lint + arc unit

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