summaryrefslogtreecommitdiff
path: root/net/openafs/files/bosserver.sh
blob: 99faa5b609769b9757b0c7c57ff083f06c122b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: bosserver.sh,v 1.3 2012/05/06 20:37:47 christos Exp $
#
# PROVIDE: bosserver
# BEFORE: afsd
# REQUIRE: NETWORK

. /etc/rc.subr

name="bosserver"
rcvar=$name
hostname=$(@HOSTNAME_CMD@)
command="@PREFIX@/sbin/$name"
start_precmd="ulimit -S -d 1048576;ulimit -S -c unlimited"
stop_precmd="@PREFIX@/bin/bos shutdown $hostname -local -wait"

load_rc_config $name
run_rc_command "$1"