1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/net/openafs/files/afsserver.in
Hiroki Sato db6429a261 Update to 1.6.5.
Submitted by:	bjk (maintainer)
PR:		ports/183946
2013-12-02 05:01:19 +00:00

37 lines
709 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: afsserver
# REQUIRE: NETWORKING
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# afsserver_enable (bool): Set to NO by default.
# Set it to YES to enable AFS server activities.
. /etc/rc.subr
name="afsserver"
rcvar="afsserver_enable"
command="%%PREFIX%%/sbin/bosserver"
stop_precmd="afsserver_prestop"
vicedir="%%PREFIX%%/etc/openafs/server"
required_files="${vicedir}/CellServDB ${vicedir}/KeyFile ${vicedir}/ThisCell ${vicedir}/UserList"
load_rc_config "$name"
: ${afsserver_enable:="NO"}
afsserver_prestop()
{
%%PREFIX%%/bin/bos shutdown -localauth -server localhost
}
run_rc_command "$1"