rcorder, script to be executed last?
rwmaillists at googlemail.com
Tue Apr 23 23:13:40 UTC 2019
On Tue, 23 Apr 2019 10:11:27 +0700
Victor Sudakov wrote:
> Dear Colleagues,
> How do I create a rc.d script which would be guaranteed to execute
> last (after all other scripts) on system shutdown?
Having something like this at the top of the file should do it
# PROVIDE: killpower
# BEFORE: growfs sysctl swap fsck
# KEYWORD: nojail shutdown
There's no absolute guarantee that this wont be obsoleted, but the
chances of all four scripts in the BEFORE line going away, or anything
being added that significantly erodes the 10 second power-down delay,
I'm assuming here that "apcupcd --killpower" can be run that late in the
shutdown and doesn't rely on anything that's already been shut down by
an rc script.
More information about the freebsd-questions