troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
621 stars 61 forks source link

initctl: extend timeout (2 -> 30 sec) #407

Closed troglobit closed 1 week ago

troglobit commented 1 week ago

As pointed out AFK by @mattiaswal, the timeout in initctl is way too short for non-trivial systems. Since it's a timeout we can safely extend it to 15 + 15 seconds to give Finit a chance to respond.

Additionally, it would also be nice to get some debug info and/or profiling feedback. E.g., how long it takes to execute a command.

https://github.com/troglobit/finit/blob/ab62b5282b0461b14464a4a5de49f3b1fa0604fe/src/client.c#L86-L118