diff options
author | Dave Cottlehuber <dch@FreeBSD.org> | 2020-01-28 08:08:01 +0000 |
---|---|---|
committer | Dave Cottlehuber <dch@FreeBSD.org> | 2020-01-28 08:08:01 +0000 |
commit | 63880e7b3380d914cd027625f1d23148149592c3 (patch) | |
tree | f88a6ebf69ea6f8156a1b314039bd495594d42f8 /databases/foundationdb-devel/files | |
parent | devel/rubygem-racc: Update to 1.4.16 (diff) |
databases/foundationdb-devel: [NEW PORT] distributed ACID transactions
FDB 7.x has a new cmake-derive build system, and upstreamed patches that
already supports C client bindings for other languages. While the
upstreamed patches are still under development, this port allows
FoundationDB users and committers to easily test and work with FreeBSD,
and also enables FreeBSD-based clients to work out of the box.
Approved by: vanilla
Sponsored by: SkunkWerks, GmbH
Differential Revision: https://reviews.freebsd.org/D23287
Notes
Notes:
svn path=/head/; revision=524463
Diffstat (limited to 'databases/foundationdb-devel/files')
-rw-r--r-- | databases/foundationdb-devel/files/foundationdb.conf.in | 47 | ||||
-rw-r--r-- | databases/foundationdb-devel/files/foundationdb.in | 33 |
2 files changed, 80 insertions, 0 deletions
diff --git a/databases/foundationdb-devel/files/foundationdb.conf.in b/databases/foundationdb-devel/files/foundationdb.conf.in new file mode 100644 index 000000000000..5b47e46f2185 --- /dev/null +++ b/databases/foundationdb-devel/files/foundationdb.conf.in @@ -0,0 +1,47 @@ +## foundationdb.conf +## +## Configuration file for FoundationDB server processes +## Full documentation is available at +## https://apple.github.io/foundationdb/configuration.html#the-configuration-file + +[fdbmonitor] +user = %%DB_USER%% +group = %%DB_GROUP%% + +[general] +restart_delay = 60 +## by default, restart_backoff = restart_delay_reset_interval = restart_delay +# initial_restart_delay = 0 +# restart_backoff = 60 +# restart_delay_reset_interval = 60 +cluster_file = %%PREFIX%%/etc/foundationdb/fdb.cluster +# delete_envvars = +# kill_on_configuration_change = true + +## Default parameters for individual fdbserver processes +[fdbserver] +command = %%PREFIX%%/bin/fdbserver +public_address = auto:$ID +listen_address = public +datadir = %%DB_DIR%%/data/$ID +logdir = %%LOG_DIR%% +# logsize = 10MiB +# maxlogssize = 100MiB +# machine_id = +# datacenter_id = +# class = +# memory = 8GiB +# storage_memory = 1GiB +# cache_memory = 2GiB +# metrics_cluster = +# metrics_prefix = + +## An individual fdbserver process with id 4500 +## Parameters set here override defaults from the [fdbserver] section +[fdbserver.4500] + +[backup_agent] +command = %%PREFIX%%/bin/backup_agent +logdir = %%LOG_DIR%% + +[backup_agent.1] diff --git a/databases/foundationdb-devel/files/foundationdb.in b/databases/foundationdb-devel/files/foundationdb.in new file mode 100644 index 000000000000..beaa49ccb767 --- /dev/null +++ b/databases/foundationdb-devel/files/foundationdb.in @@ -0,0 +1,33 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: foundationdb +# REQUIRE: LOGIN +# BEFORE: securelevel +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf to enable `foundationdb': +# +#foundationdb_enable="YES" +# +# Define config file here to run with different config file: +# +#foundationdb_config="xxxxx" +# + +. /etc/rc.subr + +name="foundationdb" +rcvar="${name}_enable" +foundationdb_enable=${foundationdb_enable:-"NO"} +command=%%PREFIX%%/bin/fdbmonitor +pidfile="/var/run/fdbmonitor.pid" + +load_rc_config "$name" +: ${foundationdb_enable="NO"} +: ${foundationdb_config="%%PREFIX%%/etc/foundationdb/foundationdb.conf"} + +command_args="--conffile ${foundationdb_config} --lockfile ${pidfile} --daemonize" +run_rc_command $1 |