diff options
author | Doug Barton <dougb@FreeBSD.org> | 2012-08-05 23:19:36 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2012-08-05 23:19:36 +0000 |
commit | 9aac569eaa031e27191a3f4165b389a17f467ad2 (patch) | |
tree | 1ed78841e1757014ccc09581c61c3683992d3f77 /games/pvpgn/files/bnetd.in | |
parent | 47b836bfe5c397deb173a868525d4cba22cbb5fa (diff) | |
download | ports-9aac569eaa031e27191a3f4165b389a17f467ad2.tar.gz ports-9aac569eaa031e27191a3f4165b389a17f467ad2.zip |
Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file
No PORTREVISION bump necessary because this is a no-op
Notes
Notes:
svn path=/head/; revision=302141
Diffstat (limited to 'games/pvpgn/files/bnetd.in')
-rw-r--r-- | games/pvpgn/files/bnetd.in | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/games/pvpgn/files/bnetd.in b/games/pvpgn/files/bnetd.in new file mode 100644 index 000000000000..c0381ea9871e --- /dev/null +++ b/games/pvpgn/files/bnetd.in @@ -0,0 +1,40 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: bnetd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable bnetd: +# +# bnetd_enable="YES" +# bnetd_flags="<set as needed>" +# +# See bnetd(1) for flags +# + +. /etc/rc.subr + +name=bnetd +rcvar=bnetd_enable + +command=%%PREFIX%%/sbin/bnetd +pidfile=/var/run/pvpgn/bnetd.pid +required_files=%%PREFIX%%/etc/pvpgn/bnetd.conf + +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +load_rc_config $name + +: ${bnetd_enable="NO"} + +run_rc_command "$1" |