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:
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!
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!