Peertube-dl/initscripts/openrc/peertube-dl-web

25 lines
737 B
Plaintext
Raw Normal View History

2021-01-23 16:51:18 +01:00
#!/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
}