Piped-Alpine/piped.init

26 lines
729 B
Text
Raw Normal View History

2023-07-03 14:37:50 +03:00
#!/sbin/openrc-run
name=$RC_SVCNAME
command="/usr/lib/jvm/java-17-openjdk/bin/java"
command_args="-server -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -Xshare:on -jar ./piped.jar"
2023-07-03 14:37:50 +03:00
command_user="piped"
directory="/home/piped"
#output_log="/var/log/$RC_SVCNAME/piped.log"
2023-07-03 14:37:50 +03:00
error_log="/var/log/$RC_SVCNAME/error.log"
pidfile="/run/$RC_SVCNAME/$RC_SVCNAME.pid"
stopsig="SIGKILL"
2023-07-03 14:37:50 +03:00
command_background="yes"
depend() {
need net
use piped-proxy
use postgresql
2023-07-03 14:37:50 +03:00
}
start_pre() {
checkpath --directory --owner $command_user:$command_user --mode 0775 \
/run/$RC_SVCNAME /var/log/$RC_SVCNAME
}