mirror of
https://git.freebsd.org/ports.git
synced 2025-06-10 07:10:32 -04:00
27 lines
466 B
Bash
27 lines
466 B
Bash
#!/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_box"
|
|
command_args="--daemonize --config ${tarantool_config}"
|
|
pidfile="/var/run/$name.pid"
|
|
|
|
run_rc_command "$1"
|