aboutsummaryrefslogtreecommitdiff
path: root/net/beacon/files
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2009-08-15 13:33:54 +0000
committerWesley Shields <wxs@FreeBSD.org>2009-08-15 13:33:54 +0000
commitb5370f7faedeadd595dc882e55bb90430718b7ed (patch)
tree4cbbce79cbc9e757265a45f8eb8118047918ad2a /net/beacon/files
parentcd4a232292dfe5d1b2238a0b76f8645b383dec61 (diff)
downloadports-b5370f7faedeadd595dc882e55bb90430718b7ed.tar.gz
ports-b5370f7faedeadd595dc882e55bb90430718b7ed.zip
- Add RC script
- No need to use pre-build target - Fix up plist PR: ports/136903 Submitted by: Antonio Querubin <tony@lava.net> Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=239597
Diffstat (limited to 'net/beacon/files')
-rw-r--r--net/beacon/files/beacon.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/beacon/files/beacon.in b/net/beacon/files/beacon.in
new file mode 100644
index 000000000000..be2a8fffd651
--- /dev/null
+++ b/net/beacon/files/beacon.in
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: beacon
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable beacon.
+#
+# beacon_enable="YES"
+
+beacon_enable=${beacon_enable-"NO"}
+
+. %%RC_SUBR%%
+
+name="beacon"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/bin/${name}"
+
+conffile=%%PREFIX%%/etc/beacon.conf
+if [ -f $conffile ]; then
+ piddir=`grep OUTPUTDIR $conffile | awk '{print $3}'`
+fi
+pidfile=${piddir}/multicastbeacon.PID
+
+load_rc_config $name
+
+run_rc_command "$1"