aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoît Dufour <benoit.dufour@mail.com>2023-10-30 15:52:33 -0400
committerBenoît Dufour <benoit.dufour@mail.com>2023-10-30 17:38:56 -0400
commita432d850133b7492cc5add04cdbe815603e65236 (patch)
tree4a349874bc5e178b14b06b45024698192e0566c7 /www-apps/invidious
parentNew ebuild for JalView (binary) (diff)
downloadguru-a432d850133b7492cc5add04cdbe815603e65236.tar.gz
guru-a432d850133b7492cc5add04cdbe815603e65236.tar.bz2
guru-a432d850133b7492cc5add04cdbe815603e65236.zip
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@mail.com>
Diffstat (limited to 'www-apps/invidious')
-rw-r--r--www-apps/invidious/files/invidious.initd6
-rw-r--r--www-apps/invidious/invidious-2023.09.27-r1.ebuild (renamed from www-apps/invidious/invidious-2023.09.27.ebuild)0
2 files changed, 5 insertions, 1 deletions
diff --git a/www-apps/invidious/files/invidious.initd b/www-apps/invidious/files/invidious.initd
index 11b7022e9..091a5c055 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
index 6e7194b15..6e7194b15 100644
--- a/www-apps/invidious/invidious-2023.09.27.ebuild
+++ b/www-apps/invidious/invidious-2023.09.27-r1.ebuild