From owner-freebsd-questions@FreeBSD.ORG Wed May 25 15:50:46 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE48A16A41C for ; Wed, 25 May 2005 15:50:46 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DEAE43D1F for ; Wed, 25 May 2005 15:50:46 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j4PFojaY046082; Wed, 25 May 2005 10:50:45 -0500 (CDT) (envelope-from dan) Date: Wed, 25 May 2005 10:50:45 -0500 From: Dan Nelson To: "Chad Leigh -- Shire.Net LLC" Message-ID: <20050525155045.GB13062@dan.emsphone.com> References: <99F403CD-38B8-4A04-A2D7-217F20F9334D@shire.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99F403CD-38B8-4A04-A2D7-217F20F9334D@shire.net> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i Cc: bsd List Subject: Re: roxen rnNG start script needed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2005 15:50:46 -0000 In the last episode (May 24), Chad Leigh -- Shire.Net LLC said: > I have my own source compiled roxen web server running and I am > trying to come up with an rcNG style start script for it and I would > like to look at the one from the port. Can someone who has the port > of roxen installed on 5.x send me the rcNG style start script for it? The roxen port is a little ancient, but something like this should work. I tested it with my local roxen 4.0 install, which may not have the same setup as a port install. It uses roxen's internal rc.d script to do all the work, since you don't want to send signals to roxen itself but its handler script. #!/bin/sh # # PROVIDE: roxen # KEYWORD: FreeBSD . /etc/rc.subr name=roxen rcvar=`set_rcvar` command="roxen" roxen_home="/usr/local/roxen-4.0" load_rc_config $name pidfile=${roxen_home}/configurations/_roxen_pid roxeninit=${roxen_home}/server/tools/init.d_roxen extra_commands="reload" start_cmd="${roxeninit} start" stop_cmd="${roxeninit} stop ; run_rc_command poll" reload_cmd="${roxeninit} reload" run_rc_command "$1" -- Dan Nelson dnelson@allantgroup.com