Piped OpenRC: using SIGKILL to stop, specified deps, no start.sh
This commit is contained in:
parent
b04e279094
commit
b682f0673d
1 changed files with 6 additions and 3 deletions
|
@ -1,19 +1,22 @@
|
||||||
#!/sbin/openrc-run
|
#!/sbin/openrc-run
|
||||||
|
|
||||||
name=$RC_SVCNAME
|
name=$RC_SVCNAME
|
||||||
command="/bin/ash"
|
command="/usr/lib/jvm/java-17-openjdk/bin/java"
|
||||||
command_args="/home/piped/start.sh"
|
command_args="-server -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+OptimizeStringConcat -XX:+UseStringDeduplication -XX:+UseCompressedOops -XX:+UseNUMA -XX:+UseG1GC -Xshare:on -jar ./piped.jar"
|
||||||
command_user="piped"
|
command_user="piped"
|
||||||
directory="/home/piped"
|
directory="/home/piped"
|
||||||
|
|
||||||
output_log="/var/log/$RC_SVCNAME/piped.log"
|
#output_log="/var/log/$RC_SVCNAME/piped.log"
|
||||||
error_log="/var/log/$RC_SVCNAME/error.log"
|
error_log="/var/log/$RC_SVCNAME/error.log"
|
||||||
|
|
||||||
pidfile="/run/$RC_SVCNAME/$RC_SVCNAME.pid"
|
pidfile="/run/$RC_SVCNAME/$RC_SVCNAME.pid"
|
||||||
|
stopsig="SIGKILL"
|
||||||
command_background="yes"
|
command_background="yes"
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need net
|
need net
|
||||||
|
use piped-proxy
|
||||||
|
use postgresql
|
||||||
}
|
}
|
||||||
|
|
||||||
start_pre() {
|
start_pre() {
|
||||||
|
|
Loading…
Reference in a new issue