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 /net/3proxy/files/3proxy.in | |
parent | When installing in the base, USE_RCORDER does the right thing without (diff) |
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
Diffstat (limited to 'net/3proxy/files/3proxy.in')
-rw-r--r-- | net/3proxy/files/3proxy.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/3proxy/files/3proxy.in b/net/3proxy/files/3proxy.in new file mode 100644 index 000000000000..ab286f94cc37 --- /dev/null +++ b/net/3proxy/files/3proxy.in @@ -0,0 +1,29 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: threeproxy +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Define these threeproxy_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/threeproxy +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE + +threeproxy_enable=${threeproxy_enable-"NO"} +threeproxy_flags=${threeproxy_flags-"%%PREFIX%%/etc/3proxy.cfg"} + +. /etc/rc.subr + +name="threeproxy" +rcvar=threeproxy_enable +command="%%PREFIX%%/bin/3proxy" + +load_rc_config $name + +start_cmd="echo \"Starting ${name}.\"; ${command} ${threeproxy_flags}" + +run_rc_command "$1" |