Feedati/docker/ttrss-openrc-ttrssupdate
boyska 212791c70a tt-rss updates feeds (introducing OpenRC)
this is a big change: OpenRC introduced to tt-rss container.
However, this also means that environment variables set in
docker-compose.yml are not passed to apache.
2018-08-10 02:51:22 +02:00

20 lines
460 B
Text
Executable file

#!/sbin/openrc-run
name="ttrssupdate"
description="continously update tt-rss feeds"
command="/usr/bin/php7"
command_args="/app/public/tt-rss/update.php --daemon"
command_user="apache"
pidfile="/run/$name.pid"
start_stop_daemon_args=""
start_pre() {
for _ in $(seq 1 60); do
if env PGPASSWORD=password-dev psql -h db -U ttrss -w ttrss; then
return 0
fi
einfo "Waiting... ( $? )"
sleep 1
done
return 1
}