ports/175510: Update of net/spread4 port to version 4.2.0
Javier Martín Rueda
jmrueda at diatel.upm.es
Thu Jan 24 08:00:02 UTC 2013
The following reply was made to PR ports/175510; it has been noted by GNATS.
From: =?ISO-8859-1?Q?Javier_Mart=EDn_Rueda?= <jmrueda at diatel.upm.es>
To: bug-followup at FreeBSD.org, jmrueda at diatel.upm.es
Cc:
Subject: Re: ports/175510: Update of net/spread4 port to version 4.2.0
Date: Thu, 24 Jan 2013 08:42:52 +0100
I attach an enhanced startup script (the original one blocks when
starting the daemon)
--- spread4.orig/files/spread.in 2012-07-20 22:32:20.000000000 +0200
+++ spread4/files/spread.in 2013-01-24 08:39:26.000000000 +0100
@@ -19,15 +19,25 @@
name=spread
rcvar=spread_enable
+load_rc_config ${name}
-command="%%PREFIX%%/sbin/spread"
+# set defaults
+spread_enable=${spread_enable:-"NO"}
+command="%%PREFIX%%/sbin/spread"
pidfile=/var/run/${name}.pid
required_files=%%PREFIX%%/etc/${name}.conf
-# set defaults
+start_cmd=spread_start
+stop_postcmd=spread_cleanup
-spread_enable=${spread_enable:-"NO"}
+spread_start() {
+ echo "Starting spread."
+ /usr/sbin/daemon -cf -p ${pidfile} ${command} ${spread_flags}
+}
+
+spread_cleanup() {
+ [ -f ${pidfile} ] && rm -f ${pidfile}
+}
-load_rc_config ${name}
run_rc_command "$1"
More information about the freebsd-apache
mailing list