mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
83eb2c3700
literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other.
36 lines
903 B
Bash
36 lines
903 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: kumofs-server
|
|
# REQUIRE: LOGIN
|
|
# BEFORE: kumofs-gateway
|
|
# KEYWORD: shutdown
|
|
#
|
|
# kumofs_server_enable="YES"
|
|
# kumofs_server_addr="server1"
|
|
# kumofs_server_db="/var/db/kumofs/db.tch"
|
|
# kumofs_server_manager_local_addr="manager1"
|
|
# kumofs_server_manager_partner_addr="manager2"
|
|
# kumofs_server_extra_flags=""
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="kumofs_server"
|
|
rcvar=kumofs_server_enable
|
|
|
|
load_rc_config $name
|
|
|
|
# Set defaults
|
|
: ${kumofs_server_enable="NO"}
|
|
: ${kumofs_server_db="/var/db/kumofs.tch"}
|
|
: ${kumofs_server_pid="/var/run/kumofs/server.pid"}
|
|
: ${kumofs_server_flags="-m ${kumofs_server_manager_local_addr} -p ${kumofs_server_manager_partner_addr} -l ${kumofs_server_addr} -d ${kumofs_server_pid} -o /var/log/kumofs/server.log -s ${kumofs_server_db} ${kumofs_server_extra_flags}"}
|
|
: ${kumofs_server_user="kumofs"}
|
|
|
|
command=%%PREFIX%%/bin/kumo-server
|
|
|
|
run_rc_command "$1"
|