Init commit

This commit is contained in:
ShreejitPanchal
2026-05-19 19:56:02 +08:00
commit 6601501eff
4047 changed files with 2185372 additions and 0 deletions

22
support/init.d/peertube Normal file
View File

@@ -0,0 +1,22 @@
#!/sbin/openrc-run
supervisor=supervise-daemon
name="PeerTube"
description="PeerTube self-hosted streaming service"
pidfile=/run/peertube/peertube.pid
output_log=/var/log/peertube/peertube.log
error_log="$output_log"
command_background=true
command_user="peertube:peertube"
command=/usr/bin/node
command_args="${directory}/dist/server"
required_dirs="$directory $NODE_CONFIG_DIR"
depend() {
after redis postgresql
}
start_pre() {
checkpath --directory --owner "$command_user" --mode 0750 "${pidfile%/*}"
checkpath --directory --owner "$command_user" --mode 0750 "${output_log%/*}"
}