Update NEWS for 1.6.22
[pkg-k5-afs_openafs.git] / src / packaging / FreeBSD / afsserver.in
blob299a4a764ca88e0b8c5f4f4616b6866cde766e51
1 #!/bin/sh
3 # $FreeBSD$
5 # PROVIDE: afsserver
6 # REQUIRE: networking
7 # KEYWORD: shutdown
9 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
10 # to enable this service:
12 # afsserver_enable (bool): Set to NO by default.
13 # Set it to YES to enable AFS server activities.
15 . /etc/rc.subr
17 name="afsserver"
18 rcvar="afsserver_enable"
20 command="%%PREFIX%%/sbin/bosserver"
22 stop_precmd="afsserver_prestop"
24 vicedir="%%PREFIX%%/etc/openafs/server"
25 required_files="${vicedir}/CellServDB ${vicedir}/KeyFile ${vicedir}/ThisCell ${vicedir}/UserList"
27 load_rc_config "$name"
29 : ${afsserver_enable:="NO"}
31 afsserver_prestop()
33 %%PREFIX%%/bin/bos shutdown -localauth -server localhost
36 run_rc_command "$1"