From b682f0673da6d22f6293c48dff8353dfa539c22e Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Thu, 20 Jul 2023 12:32:20 +0400 Subject: [PATCH] Piped OpenRC: using SIGKILL to stop, specified deps, no start.sh --- piped.init | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/piped.init b/piped.init index 51a5889..ea2aca1 100755 --- a/piped.init +++ b/piped.init @@ -1,19 +1,22 @@ #!/sbin/openrc-run name=$RC_SVCNAME -command="/bin/ash" -command_args="/home/piped/start.sh" +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" command_user="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" pidfile="/run/$RC_SVCNAME/$RC_SVCNAME.pid" +stopsig="SIGKILL" command_background="yes" depend() { need net + use piped-proxy + use postgresql } start_pre() {