How to debug a crash in a /etc/init.d script? Works OK when run from command line, worked in 22.04.
Karl Auer
kauer at biplane.com.au
Sat Jun 8 13:22:34 UTC 2024
On Sat, 2024-06-08 at 13:11 +0100, Chris Green wrote:
> Yes, that's what I've been thinking is the most likely cause. I
> suspect that a time delay in a /etc/init.d script is not a good idea
> though. I'll have to try a wrapper script that returns immediately
> after starting a script with a delay in it.
There is a "timeout" command that should be installed by default
(coreutils).
It's entirely possible to roll your own in bash background processes,
polling and kill, but ugh.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au, he/him)
http://www.biplane.com.au/kauer
More information about the ubuntu-users
mailing list