1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 17:55:15 +03:00
aports/testing/tarantool/tarantool.initd
2017-07-26 15:12:56 +02:00

19 lines
487 B
Text

#!/sbin/openrc-run
INSTANCE=default
[ "${RC_SVCNAME}" != "${RC_SVCNAME##*.}" ] && INSTANCE=${RC_SVCNAME##*.}
command="/usr/bin/tarantoolctl"
command_user="${TARANTOOL_USER:-tarantool}"
command_args="start ${INSTANCE}"
pidfile="/run/${INSTANCE}.pid"
depend() {
use logger dns
need net
after firewall
}
start_pre() {
checkpath --owner ${TARANTOOL_USER:-tarantool}:${TARANTOOL_USER:-tarantool} \
--directory --mode 0775 /var/log/tarantool /var/run/tarantool
}