Add LavinMQ Alpine package
Build Alpine Packages / build-and-publish (v3.24, 3.24) (pull_request) Successful in 29m11s
Build Alpine Packages / build-and-publish (v3.24, 3.24) (pull_request) Successful in 29m11s
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
description="LavinMQ message queue service"
|
||||
|
||||
command="/usr/bin/lavinmq"
|
||||
command_user="${LAVINMQ_USER:-lavinmq}:${LAVINMQ_GROUP:-lavinmq}"
|
||||
command_background="yes"
|
||||
pidfile="/run/lavinmq/lavinmq.pid"
|
||||
output_log="${LAVINMQ_LOG:-/var/log/lavinmq/lavinmq.log}"
|
||||
error_log="${LAVINMQ_ERRLOG:-/var/log/lavinmq/lavinmq.log}"
|
||||
|
||||
config_file="${LAVINMQ_CONFIG:-/etc/lavinmq/lavinmq.ini}"
|
||||
data_dir="${LAVINMQ_DATA_DIR:-/var/lib/lavinmq}"
|
||||
command_args="-D ${data_dir} --config ${config_file} ${LAVINMQ_OPTS:-}"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 -o "${LAVINMQ_USER:-lavinmq}:${LAVINMQ_GROUP:-lavinmq}" \
|
||||
/run/lavinmq \
|
||||
/var/log/lavinmq
|
||||
checkpath -d -m 0750 -o "${LAVINMQ_USER:-lavinmq}:${LAVINMQ_GROUP:-lavinmq}" \
|
||||
"$data_dir"
|
||||
}
|
||||
Reference in New Issue
Block a user