Hello, I added the invidious OpenRC service to the run level default, but it always fails to start because it tries to start before PostgreSQL has started. See those logs : Caused by: Error connecting to 'localhost:5432': Connection refused (Socket::ConnectError) from /usr/bin/invidious in '??' from /usr/bin/invidious in '??' from /usr/bin/invidious in '??' from /usr/bin/invidious in '??' from /usr/bin/invidious in '??' from /usr/bin/invidious in '__crystal_main' from /usr/bin/invidious in 'main' from /lib64/libc.so.6 in '??' from /lib64/libc.so.6 in '__libc_start_main' from /usr/bin/invidious in '_start' from ??? So could you fix the invidious init file so it would requires PostgreSQL to be started? https://github.com/gentoo-mirror/guru/blob/1caf9ef5c1266bffd7ba26a608d6ef38d747d9ee/www-apps/invidious/files/invidious.initd#L16 So basically : depend() { use logger net postgresql-15 } Or something like : postgresql-service="$(find /etc/init.d/ -name "*postgresql*" | rev | cut -d '/' -f -1 | rev)" depend() { use logger net "${postgresql-service}" } Instead of : depend() { use logger net }
Fixed by: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?h=dev&id=a432d850133b7492cc5add04cdbe815603e65236