freebsd-ports/textproc/sonic/files/sonic.in
Tobias Kortkamp bf67630add New port: textproc/sonic
Sonic is a fast, lightweight, and schema-less search backend.  It
ingests search texts and identifier tuples that can then be queried
against in a microsecond's time.

Sonic can be used as a simple alternative to super-heavy and
full-featured search backends such as Elasticsearch in some use-cases.
It is capable of normalizing natural language search queries,
auto-completing a search query and providing the most relevant
results for a query.  Sonic is an identifier index, rather than a
document index; when queried, it returns IDs that can then be used
to refer to the matched documents in an external database.

A strong attention to performance and code cleanliness has been
given when designing Sonic.  It aims at being crash-free, super-fast
and puts minimum strain on server resources.

WWW: https://github.com/valeriansaliou/sonic
2019-04-03 17:43:12 +00:00

26 lines
534 B
Bash

#!/bin/sh
#
# PROVIDE: sonic
# REQUIRE: NETWORKING
# BEFORE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name=sonic
desc="Fast, lightweight, and schema-less search backend"
rcvar=sonic_enable
load_rc_config $name
: ${sonic_enable:=NO}
: ${sonic_config="%%ETCDIR%%/config.cfg"}
sonic_chdir=/var/db/sonic
pidfile=/var/run/sonic.pid
start_precmd="/usr/bin/install -d -o sonic -g sonic -m 750 /var/db/sonic"
command=/usr/sbin/daemon
command_args="-S -u sonic -P ${pidfile} %%PREFIX%%/bin/sonic -c ${sonic_config}"
run_rc_command "$1"