Notes for operating systems
On Mac OS, you can administer Tarantool instances only with tarantoolctl
.
No native system tools are supported.
To make tarantoolctl
work along with init.d
utilities on FreeBSD, use
paths other than those suggested in
Instance configuration. Instead of
/usr/share/tarantool/
directory, use /usr/local/etc/tarantool/
and
create the following subdirectories:
default
fortarantoolctl
defaults (see example below),instances.available
for all available instance files, andinstances.enabled
for instance files to be auto-started by sysvinit.
Here is an example of tarantoolctl
defaults on FreeBSD:
default_cfg = {
pid_file = "/var/run/tarantool", -- /var/run/tarantool/${INSTANCE}.pid
wal_dir = "/var/db/tarantool", -- /var/db/tarantool/${INSTANCE}/
snap_dir = "/var/db/tarantool", -- /var/db/tarantool/${INSTANCE}
vinyl_dir = "/var/db/tarantool", -- /var/db/tarantool/${INSTANCE}
logger = "/var/log/tarantool", -- /var/log/tarantool/${INSTANCE}.log
username = "tarantool",
}
-- instances.available - all available instances
-- instances.enabled - instances to autostart by sysvinit
instance_dir = "/usr/local/etc/tarantool/instances.available"
The section below is about a dev-db/tarantool package installed from the
official layman overlay (named tarantool
).
The default instance directory is /etc/tarantool/instances.available
, can be
redefined in /etc/default/tarantool
.
Tarantool instances can be managed (start/stop/reload/status/…) using OpenRC. Consider the example how to create an OpenRC-managed instance:
$ cd /etc/init.d
$ ln -s tarantool your_service_name
$ ln -s /usr/share/tarantool/your_service_name.lua /etc/tarantool/instances.available/your_service_name.lua
Checking that it works:
$ /etc/init.d/your_service_name start
$ tail -f -n 100 /var/log/tarantool/your_service_name.log