aboutsummaryrefslogtreecommitdiff
path: root/databases/foundationdb/files/foundationdb.in
blob: 1bcd503816f84d4a1a756557876ac3af33fff4ea (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
28
29
30
#!/bin/sh

# 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