Date: Thu, 24 Jan 2013 08:00:01 GMT From: =?ISO-8859-1?Q?Javier_Mart=EDn_Rueda?= <jmrueda@diatel.upm.es> To: apache@FreeBSD.org Subject: Re: ports/175510: Update of net/spread4 port to version 4.2.0 Message-ID: <201301240800.r0O80118052800@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@diatel.upm.es> To: bug-followup@FreeBSD.org, jmrueda@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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301240800.r0O80118052800>