Add new port from Allan
This commit is contained in:
40
net/akhq/files/akhq.in
Normal file
40
net/akhq/files/akhq.in
Normal file
@ -0,0 +1,40 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PROVIDE: akhq
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=akhq
|
||||
rcvar=akhq_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${akhq_enable:=NO}
|
||||
: ${akhq_config:=/usr/local/etc/akhq/application.yml}
|
||||
: ${akhq_jar:=/usr/local/share/java/akhq/akhq.jar}
|
||||
: ${akhq_java:=/usr/local/bin/java}
|
||||
: ${akhq_user:=www}
|
||||
: ${akhq_pidfile:=/var/run/${name}.pid}
|
||||
|
||||
command="/usr/sbin/daemon"
|
||||
command_args="-P ${akhq_pidfile} -r -f ${akhq_java} -Dmicronaut.config.files=${akhq_config} -jar ${akhq_jar}"
|
||||
|
||||
start_precmd=akhq_startprecmd
|
||||
|
||||
akhq_startprecmd()
|
||||
{
|
||||
# Ensure the directory for the PID file exists
|
||||
if [ ! -d $(dirname ${akhq_pidfile}) ]; then
|
||||
install -d -o ${akhq_user} -m 0750 $(dirname ${akhq_pidfile})
|
||||
fi
|
||||
|
||||
# Ensure the PID file exists with the right permissions
|
||||
if [ ! -e "${akhq_pidfile}" ]; then
|
||||
install -m 0600 -o ${akhq_user} /dev/null ${akhq_pidfile}
|
||||
fi
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
||||
9
net/akhq/files/application.yml
Normal file
9
net/akhq/files/application.yml
Normal file
@ -0,0 +1,9 @@
|
||||
akhq:
|
||||
connections:
|
||||
local:
|
||||
properties:
|
||||
bootstrap.servers: "localhost:9092"
|
||||
micronaut:
|
||||
server:
|
||||
port: 8080
|
||||
host: "0.0.0.0"
|
||||
Reference in New Issue
Block a user