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 +}