From cb04211505b0e550035f1cb72f75033fc8657564 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Sat, 23 Jan 2021 16:51:18 +0100 Subject: [PATCH] feature: Adding a open-rc initscript. --- initscripts/openrc/peertube-dl-web | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 initscripts/openrc/peertube-dl-web diff --git a/initscripts/openrc/peertube-dl-web b/initscripts/openrc/peertube-dl-web new file mode 100644 index 0000000..f50ff74 --- /dev/null +++ b/initscripts/openrc/peertube-dl-web @@ -0,0 +1,24 @@ +#!/sbin/openrc-run + +# Requires OpenRC >= 0.35 +directory=/var/lib/peertubedl + +PATH="/var/lib/peertubedl/perl5/bin${PATH:+:${PATH}}"; export PATH; +PERL5LIB="/var/lib/peertubedl/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; +PERL_LOCAL_LIB_ROOT="/var/lib/peertubedl/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT; +PERL_MB_OPT="--install_base \"/var/lib/peertubedl/perl5\""; export PERL_MB_OPT; +PERL_MM_OPT="INSTALL_BASE=/var/lib/peertubedl/perl5"; export PERL_MM_OPT; + +command=/var/lib/peertubedl/perl5/bin/peertube-dl-hypnotoad + +command_args="" + +command_user=peertubedl:peertubedl + +pidfile="/var/lib/peertubedl/peertube-dl-web.pid" + +export PIDFILE=$pidfile + +depend() { + need postgresql +}