Changeset View
Changeset View
Standalone View
Standalone View
head/databases/foundationdb-devel/files/foundationdb.in
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#!/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 |