aboutsummaryrefslogtreecommitdiffstats
path: root/databases/tarantool/files/tarantool.in
blob: d4b9ce8aaa30435bfe3ea4f58c2cef181edf9776 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#
# $FreeBSD$

# PROVIDE: tarantool
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# tarantool_enable="YES"
# tarantool_config=""
#

. /etc/rc.subr

name="tarantool"
rcvar=tarantool_enable

load_rc_config "$name"

tarantool_enable=${tarantool_enable:-"NO"}
tarantool_config=${tarantool_config:-"%%ETCDIR%%/$name.cfg"}

command="%%PREFIX%%/bin/tarantool_silverbox"
command_args="--daemonize --config ${tarantool_config}"
pidfile="/var/run/$name.pid"

run_rc_command "$1"