summaryrefslogtreecommitdiff
path: root/net/openafs/files
diff options
context:
space:
mode:
authorgendalia <gendalia@pkgsrc.org>2005-06-16 17:27:12 +0000
committergendalia <gendalia@pkgsrc.org>2005-06-16 17:27:12 +0000
commit3e0768b55baa1c5938f06f8081bc693fab170f10 (patch)
treefa69f9ead478ae1d9c569ca1df20a15f931d1552 /net/openafs/files
parent3e8497c522a33339e5c435e207b17cb8f27b8da0 (diff)
downloadpkgsrc-3e0768b55baa1c5938f06f8081bc693fab170f10.tar.gz
Configure the ${PKG_SYSCONFDIR}/openafs & ${VARBASE}/openafs directories
correctly & completely, and add the startup script for the bosserver.
Diffstat (limited to 'net/openafs/files')
-rw-r--r--net/openafs/files/bosserver.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/openafs/files/bosserver.sh b/net/openafs/files/bosserver.sh
new file mode 100644
index 00000000000..8264756b044
--- /dev/null
+++ b/net/openafs/files/bosserver.sh
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: bosserver.sh,v 1.1 2005/06/16 17:27:12 gendalia Exp $
+#
+# PROVIDE: bosserver
+# BEFORE: arlad
+# REQUIRE: NETWORK
+
+. /etc/rc.subr
+
+name="bosserver"
+rcvar=$name
+hostname=`@HOSTNAME_CMD@`
+command="@PREFIX@/sbin/$name"
+stop_precmd="@PREFIX@/bin/bos shutdown $hostname -local -wait"
+
+load_rc_config $name
+run_rc_command "$1"