diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-07-26 15:12:36 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2017-07-26 15:12:56 +0200 |
commit | 1ce94bc0259bc8026301433dd51c1970fb4a1810 (patch) | |
tree | 0a74f7e71330a1fe2cc4c75dfbed7688df99f9e7 /testing/tarantool/tarantool.initd | |
parent | 82b7374e7272c0fa7679c5e37d74ec9da2652bff (diff) | |
download | aports-1ce94bc0259bc8026301433dd51c1970fb4a1810.tar.bz2 aports-1ce94bc0259bc8026301433dd51c1970fb4a1810.tar.xz |
testing/tarantool: new aport
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 +} |