aboutsummaryrefslogtreecommitdiff
path: root/databases/kumofs/files/kumofs-manager.sh.in
blob: e1cea3296ef451d32b61fa3403ce591f15d174a0 (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
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: kumofs-manager
# REQUIRE: DAEMON
# BEFORE: kumofs-server
# KEYWORD: shutdown

. %%RC_SUBR%%

name=kumofs_manager
rcvar=`set_rcvar`

load_rc_config $name

# Set defaults
: ${kumofs_manager_enable:="NO"}
: ${kumofs_manager_local_addr:=""}
: ${kumofs_manager_partner_addr:=""}
: ${kumofs_manager_extra_flags:=""}
: ${kumofs_manager_pid:="/var/run/kumofs/manager.pid"}
: ${kumofs_manager_flags:="-l ${kumofs_manager_local_addr} -p ${kumofs_manager_partner_addr} -d ${kumofs_manager_pid} -o /var/log/kumofs/manager.log ${kumofs_manager_extra_flags}"}
: ${kumofs_manager_user:="kumofs"}

command=%%PREFIX%%/bin/kumo-manager

run_rc_command "$1"