Date: Wed, 30 Nov 2011 21:54:19 +0400 From: Ruslan Mahmatkhanov <cvs-src@yandex.ru> To: freebsd-rc@FreeBSD.org Subject: rc-script review request Message-ID: <4ED66DCB.1040102@yandex.ru>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hello. I'm planning to finish repocopy of www/zope213 this evening. Would you please review rc-script that is supplied with it [1]? I get this one from www/zope211 and minimally changed it, and as far i can tell dougb@ was the last person who touched it, so it should be ok, but i'm asking for review just for the case. I'm attached the script in question and provide the link to it for the case if mailmain will eat it. Thank you much in advance. [1] https://github.com/mexicarne/zope/blob/master/www/zope213/files/zope213.in -- Regards, Ruslan Tinderboxing kills... the drives. [-- Attachment #2 --] #!/bin/sh # # Startup script for Zope server. # # $FreeBSD: ports/www/zope211/files/zope211.in,v 1.3 2011/05/15 02:49:17 dougb Exp $ # # PROVIDE: zope213 # REQUIRE: DAEMON # Define these zope213_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/zope213 # # zope213_enable : bool # Enable Zope ("YES") or not ("NO", the default). # # zope213_instances : list # List of dirs with Zope's instances ("" by default). # . /etc/rc.subr name="zope213" rcvar=`set_rcvar` zope213ctl () { for instance in $zope213_instances; do if [ -d ${instance} ]; then echo -n " Zope instance ${instance} -> " ${instance}/bin/zopectl "$1" fi done } zope213_start () { echo "Starting Zope 2.13:" zope213ctl "start" } zope213_stop () { echo "Stopping Zope 2.13:" zope213ctl "stop" } zope213_restart () { echo "Restarting Zope 2.13:" zope213ctl "restart" } start_cmd="zope213_start" stop_cmd="zope213_stop" restart_cmd="zope213_restart" load_rc_config $name : ${zope213_enable="NO"} cmd="$1" [ $# -gt 0 ] && shift [ -n "$*" ] && zope213_instances="$*" run_rc_command "${cmd}"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ED66DCB.1040102>
