skarnet / s6-rc

A service manager for s6.
https://skarnet.org/software/s6-rc/
ISC License
121 stars 10 forks source link

s6-rc Oneshot Fails with Timeout #8

Closed NateMeyer closed 1 year ago

NateMeyer commented 1 year ago

I'm trying to add a oneshot service as a dependency to an existing s6-rc longrun service. The oneshot script takes up to a few minutes to run to prepare some data, but I get a failure due to a timeout about halfway through and the longrun service never starts. My understanding from the documentation was the oneshot should never timeout unless an explicit timeout-up file was given. I had tried adding a 10-minute timeout-up file, but I still get a timeout in less than a minute.

What would be causing this timeout? Is there a time limit to oneshot tasks?

skarnet commented 1 year ago

There is a global timeout for all the services, adjustable via the S6_CMD_WAIT_FOR_SERVICES_MAXTIME variable. You can disable it via setting this variable to 0.

NateMeyer commented 1 year ago

Thanks! Yes, this is using the s6-overlay. I'll take a look through the v3 notes and if I have further questions I'll open an issue over there.