Page MenuHomeFreeBSD

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

Authored by kevans on Tue, Jul 20, 11:48 AM.

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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

gbe added a subscriber: gbe.

LGTM for the man page part.

sbin/init/init.c
2060

I suggest to also check that +x bit it enabled

2076

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

2079

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

2084

Again, NULL instead of (int *)0?

kevans marked 4 inline comments as done.

Address feedback from kib

sbin/init/init.c
2060

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

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