dom at bishnet.net
Mon Feb 23 11:50:31 PST 2004
I just tried setting the value of the kern.shutdown_timeout sysctl and it
sysctl: unknown oid 'kern.shutdown_timeout'
I am trying to increase the maximum time allowed for rc.shutdown to run for
reasons explained in my previous post "Help needed modifying shutdown
>From the source code of init (ie init.c) it clearly reads the value of this
sysctl to override the default of 2 minutes:
&len, NULL, 0) == -1 || shutdowntimeout < 2)
shutdowntimeout = DEATH_SCRIPT;
But it appears that in reality this sysctl value doesn't exist, I looked
through sysctl.h and couldn't see it in there either.
Can I assume this is a bug and one or the other bit is wrong?
And is there anyway to fix this?
If it comes to it I can just override the default 2 minutes by altering the
#define in init.c but I would prefer to not hack the source and have to
re-edit after every src cvsup, especially since the sysctl would provide a
much neater way of accomplishing it.
More information about the freebsd-questions