rc.d script for quickml

Doug Barton dougb at FreeBSD.org
Mon Jan 18 21:12:10 UTC 2010


About a month ago I proposed the following changes for the rc.d script
for quickml to bring it up to date (and probably fix it since I doubt
it's currently working properly) but I just double-checked my mail
folder and realized that I forgot to explicitly send this to the
maintainer, which I'm doing now.


Doug

-- 

	Improve the effectiveness of your Internet presence with
	a domain name makeover!    http://SupersetSolutions.com/

	Computers are useless. They can only give you answers.
			-- Pablo Picasso

-------------- next part --------------
Index: quickml.in
===================================================================
RCS file: /home/pcvs/ports/mail/quickml/files/quickml.in,v
retrieving revision 1.1
diff -u -r1.1 quickml.in
--- quickml.in	17 Dec 2009 23:24:25 -0000	1.1
+++ quickml.in	18 Dec 2009 00:31:29 -0000
@@ -3,16 +3,27 @@
 # $FreeBSD: ports/mail/quickml/files/quickml.in,v 1.1 2009/12/17 23:24:25 pgollucci Exp $
 #
 
-. %%RC_SUBR%%
+# PROVIDE: quickml
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# quickml_enable (bool):	Set to NO by default.
+
+. /etc/rc.subr
 
 name="quickml"
 rcvar=`set_rcvar`
 
-command="%%RUBY%%"
-command_args="%%PREFIX%%/sbin/${name}"
+command="%%PREFIX%%/sbin/${name}"
+command_interpreter="%%RUBY%%"
 pidfile="/var/run/${name}.pid"
 required_files=%%PREFIX%%/etc/quickmlrc
 
 load_rc_config $name
 
+: ${quickml_enable="NO"}
+
 run_rc_command "$1"


More information about the freebsd-ports mailing list