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 /irc/undernet-ircu/files/undernet.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
Notes
Notes:
svn path=/head/; revision=302141
Diffstat (limited to 'irc/undernet-ircu/files/undernet.in')
-rw-r--r-- | irc/undernet-ircu/files/undernet.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/irc/undernet-ircu/files/undernet.in b/irc/undernet-ircu/files/undernet.in new file mode 100644 index 000000000000..4d3819fc06de --- /dev/null +++ b/irc/undernet-ircu/files/undernet.in @@ -0,0 +1,35 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: undernet +# REQUIRE: LOGIN +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# undernet_enable (bool): Set to NO by default. +# Set it to YES to enable undernet-ircu. +# undernet_config (path): Set to %%PREFIX%%/etc/ircd.conf +# by default. + +. /etc/rc.subr + +name=undernet +rcvar=undernet_enable + +load_rc_config ${name} + +: ${undernet_enable="NO"} +: ${undernet_config="%%PREFIX%%/etc/ircd.conf"} +undernet_user="undernet" +undernet_group="undernet" + +command="%%PREFIX%%/bin/ircd" +pidfile="undernet.pid" +piddir="/var/log/" +required_files="${undernet_config}" + +command_args="-f ${undernet_config}" + +run_rc_command "$1" |