Date: Wed, 25 May 2005 10:50:45 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: "Chad Leigh -- Shire.Net LLC" <chad@shire.net> Cc: bsd List <freebsd-questions@freebsd.org> Subject: Re: roxen rnNG start script needed Message-ID: <20050525155045.GB13062@dan.emsphone.com> In-Reply-To: <99F403CD-38B8-4A04-A2D7-217F20F9334D@shire.net> References: <99F403CD-38B8-4A04-A2D7-217F20F9334D@shire.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050525155045.GB13062>
