commit: a432d850133b7492cc5add04cdbe815603e65236 Author: Benoît Dufour <benoit.dufour <AT> mail <DOT> com> AuthorDate: Mon Oct 30 19:52:33 2023 +0000 Commit: Benoît Dufour <benoit.dufour <AT> mail <DOT> com> CommitDate: Mon Oct 30 21:38:56 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a432d850
www-apps/invidious: Invidious hard depends on PostgreSQL, and fails to start if PostgreSQL hasn't already started. So it will fail to start if started at boot (rc-update add invidious default). See: https://bugs.gentoo.org/916051 Using 'postgresql' as 'use' in the 'depend' function of the www-apps/invidious/files/invidious.initd file fixes this behaviour. Signed-off-by: Benoît Dufour <benoit.dufour <AT> mail.com> www-apps/invidious/files/invidious.initd | 6 +++++- .../{invidious-2023.09.27.ebuild => invidious-2023.09.27-r1.ebuild} | 0 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/www-apps/invidious/files/invidious.initd b/www-apps/invidious/files/invidious.initd index 11b7022e94..091a5c0558 100644 --- a/www-apps/invidious/files/invidious.initd +++ b/www-apps/invidious/files/invidious.initd @@ -13,8 +13,12 @@ pidfile="/run/invidious.pid" output_log="/var/log/invidious.log" error_log="${output_log}" +# Invidious hard depends on PostgreSQL, and fails to start if PostgreSQL hasn't already started. +# So it will fail to start if started at boot (rc-update add invidious default). +# See: https://bugs.gentoo.org/916051 +# Using 'postgresql' as 'use' in the 'depend' function fixes this behaviour. depend() { - use logger net + use logger net postgresql } start_pre() { diff --git a/www-apps/invidious/invidious-2023.09.27.ebuild b/www-apps/invidious/invidious-2023.09.27-r1.ebuild similarity index 100% rename from www-apps/invidious/invidious-2023.09.27.ebuild rename to www-apps/invidious/invidious-2023.09.27-r1.ebuild
