rcshutdown_timeout tunable doesn't survive restart

nickt

Contributor
Joined
Feb 27, 2015
Messages
131
Hi all,

I am attempting to use the tunables to change the rcshutdown_timeout in rc.conf and kern.init_shutdown_timeout in sysctl to lengthen out the shutdown watchdog timer. In the GUI my tunables looks like the attached screenshot.

After a restart, I find that the sysctl change sticks, but not the rc.conf change:
Code:
[root@Saturn] ~# sysctl kern.init_shutdown_timeout
kern.init_shutdown_timeout: 300

[root@Saturn] ~# cat /etc/defaults/rc.conf | grep shut
rcshutdown_timeout="90" # Seconds to wait before terminating rc.shutdown


Any suggestions as to how I can make the rcshutdown_timeout setting survive a restart?

The background to this is that I've found the default settings for the shutdown watchdog timer are too short for my FreeNAS system - the watchdog often kicks in before the shutdown has completed. I have 5 jails, which take time to shutdown, lengthening the server shutdown time.

The main problem this creates is in power failure cases - the shutdown watchdog often steps in before NUT can start the UPS shutdown procedure. So the FreeNAS box ends up shutdown, but the UPS stays on, which will cause the UPS to discharge fully during an extended power outage.

Thanks in advance for any help!
 

Attachments

  • Screen Shot 2015-05-23 at 4.50.49 pm.png
    Screen Shot 2015-05-23 at 4.50.49 pm.png
    59.9 KB · Views: 385

sonicaj

Cadet
Joined
Mar 7, 2018
Messages
2
Hello, I know I'm quite a bit late on this one :P
But you should use Init/Shutdown scripts under Tasks to handle tasks on shutdown/boot. Also you should be able to specify a timeout for each task in the coming 11.3 release. ( It should be available in nightlies by tomorrow )
 
Top