* [gentoo-user] openrc - parallel start - timeouts
@ 2024-03-29 13:30 J. Roeleveld
2024-03-29 14:16 ` Michael
0 siblings, 1 reply; 3+ messages in thread
From: J. Roeleveld @ 2024-03-29 13:30 UTC (permalink / raw
To: gentoo-user
Hi All,
To improve the bootup time of my server, I want to enable "parallel", however,
I run into an issue where some of the services take longer than 60 seconds to
start, causing this to be classed as "not started", which then kills the
entire boot sequence.
Boot, obviously, goes fine with parallel off, but I am certain I can reduce the
boot time significantly using parallel. I also spent quite some time checking
dependencies between the services to ensure they are all present.
Now, how do I configure a longer timeout? Preferably on a per-service basis,
but at the very least, globally.
Many thanks in advance,
Joost
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] openrc - parallel start - timeouts
2024-03-29 13:30 [gentoo-user] openrc - parallel start - timeouts J. Roeleveld
@ 2024-03-29 14:16 ` Michael
2024-04-01 9:46 ` J. Roeleveld
0 siblings, 1 reply; 3+ messages in thread
From: Michael @ 2024-03-29 14:16 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 805 bytes --]
On Friday, 29 March 2024 13:30:23 GMT J. Roeleveld wrote:
> Hi All,
>
> To improve the bootup time of my server, I want to enable "parallel",
> however, I run into an issue where some of the services take longer than 60
> seconds to start, causing this to be classed as "not started", which then
> kills the entire boot sequence.
>
> Boot, obviously, goes fine with parallel off, but I am certain I can reduce
> the boot time significantly using parallel. I also spent quite some time
> checking dependencies between the services to ensure they are all present.
>
> Now, how do I configure a longer timeout? Preferably on a per-service basis,
> but at the very least, globally.
>
> Many thanks in advance,
>
> Joost
Take a look in /etc/rc.conf, the section titled "SERVICE CONFIGURATION
VARIABLES".
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] openrc - parallel start - timeouts
2024-03-29 14:16 ` Michael
@ 2024-04-01 9:46 ` J. Roeleveld
0 siblings, 0 replies; 3+ messages in thread
From: J. Roeleveld @ 2024-04-01 9:46 UTC (permalink / raw
To: gentoo-user
On Friday, 29 March 2024 15:16:18 CEST Michael wrote:
> On Friday, 29 March 2024 13:30:23 GMT J. Roeleveld wrote:
> > Hi All,
> >
> > To improve the bootup time of my server, I want to enable "parallel",
> > however, I run into an issue where some of the services take longer than
> > 60
> > seconds to start, causing this to be classed as "not started", which then
> > kills the entire boot sequence.
> >
> > Boot, obviously, goes fine with parallel off, but I am certain I can
> > reduce
> > the boot time significantly using parallel. I also spent quite some time
> > checking dependencies between the services to ensure they are all present.
> >
> > Now, how do I configure a longer timeout? Preferably on a per-service
> > basis, but at the very least, globally.
> >
> > Many thanks in advance,
> >
> > Joost
>
> Take a look in /etc/rc.conf, the section titled "SERVICE CONFIGURATION
> VARIABLES".
None of the entries in that entire file have any influence on the timeout.
I did manage to find out a way by looking at the code:
1) The timeout is hardcoded to 60 seconds (which is stupid design)
2) The only option is to disable the timeout for a service entirely and add a
more sane timeout to the init-script.
--
Joost
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-01 9:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-29 13:30 [gentoo-user] openrc - parallel start - timeouts J. Roeleveld
2024-03-29 14:16 ` Michael
2024-04-01 9:46 ` J. Roeleveld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox