if you’re setting command_background=true in openrc, please, reconsider and use supervisor=supervise-daemon instead
Conversation
Notices
-
Embed this notice
anna (navi@social.vlhl.dev)'s status on Saturday, 01-Mar-2025 11:33:57 JST anna
-
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 01-Mar-2025 11:33:56 JST Haelwenn /элвэн/ :triskell:
@navi 🤔️
$ grep -lr supervise-daemon /etc/init.d/ | xargs grep command_background /etc/init.d/kineto:command_background="true" /etc/init.d/yacy:command_background=1 /etc/init.d/pleroma.bak:command_background=1 /etc/init.d/pleroma:command_background=1 $ grep -lr command_background /etc/init.d/ | xargs grep supervisor /etc/init.d/kineto:supervisor="supervise-daemon" /etc/init.d/yacy:supervisor=supervise-daemon /etc/init.d/pleroma.bak:supervisor=supervise-daemon /etc/init.d/pleroma:supervisor=supervise-daemon -
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 01-Mar-2025 11:37:30 JST Haelwenn /элвэн/ :triskell:
@navi Seems like command_background is only used by start-stop-daemon so it's effectively a no-op for other supervisors?
-
Embed this notice
anna (navi@social.vlhl.dev)'s status on Saturday, 01-Mar-2025 11:39:09 JST anna
@lanodan yeap, `command_background` is only used to tell s-s-d that the daemon does not fork by itself, so s-s-d should double-fork
supervise-daemon obviously expect the daemon to not fork, so it's start/stop function don't use that variable at allHaelwenn /элвэн/ :triskell: likes this. -
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 01-Mar-2025 11:42:17 JST Haelwenn /элвэн/ :triskell:
@navi Makes sense, and well to me s-s-d is somewhat legacy, at least when it comes to daemons. -
Embed this notice
anna (navi@social.vlhl.dev)'s status on Saturday, 01-Mar-2025 11:44:44 JST anna
@lanodan i wish we could default to supervise-daemon, but that would break a ton of scripts so no-go
best i can do is update every guide to say "hey, if you can, please use supervise-daemon"Haelwenn /элвэн/ :triskell: likes this. -
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 01-Mar-2025 11:47:34 JST Haelwenn /элвэн/ :triskell:
@navi Yeah, although maybe one-shots could be made explicit so start-stop-daemon usage would be somewhat visible?
And I guess s-s-d + command_background could throw a warning? (Either in OpenRC or in gentoo Q&A tools)
-
Embed this notice