summaryrefslogtreecommitdiff
path: root/net/spread/files/spread.sh.in
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2006-12-26 16:25:45 +0000
committerAaron Dalton <aaron@FreeBSD.org>2006-12-26 16:25:45 +0000
commit034da62417935d4a3374da0273b142f3083d8efa (patch)
treea9703b1d030f51c8a716718b1ff89c3b2449c7df /net/spread/files/spread.sh.in
parent- add pkg-message explaining user-mount when using iPod and MTP devices (diff)
General port cleanup: USE_RC_SUBR and plist fixes mostly.
Notes
Notes: svn path=/head/; revision=180799
Diffstat (limited to 'net/spread/files/spread.sh.in')
-rw-r--r--net/spread/files/spread.sh.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/net/spread/files/spread.sh.in b/net/spread/files/spread.sh.in
new file mode 100644
index 000000000000..fc9fd9e85755
--- /dev/null
+++ b/net/spread/files/spread.sh.in
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: spread
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable spread:
+#
+#spread_enable="YES"
+#
+# See spread(1) for flags
+#
+
+. %%RC_SUBR%%
+
+name=spread
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/sbin/spread"
+command_args=""
+pidfile=/var/run/${name}.pid
+required_files=%%PREFIX%%/etc/${name}.conf
+
+# set defaults
+
+spread_enable=${spread_enable:-"NO"}
+spread_flags=${spread_flags:-""}
+
+load_rc_config ${name}
+run_rc_command "$1"