diff options
Diffstat (limited to 'testing/tarantool/tarantool.initd')
-rw-r--r-- | testing/tarantool/tarantool.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/tarantool/tarantool.initd b/testing/tarantool/tarantool.initd new file mode 100644 index 0000000000..18bc5c128f --- /dev/null +++ b/testing/tarantool/tarantool.initd @@ -0,0 +1,19 @@ +#!/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 +} |