feature: Adding a open-rc initscript. #24

Merged
sergiotarxz merged 1 commits from feature/adding_example_gentoo_init_script into master 2021-01-23 16:55:14 +01:00
1 changed files with 24 additions and 0 deletions

View File

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