public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jurek Bartuszek (jurek)" <jurek@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in dev-dotnet/xsp/files/1.2.6: mod-mono-server.confd xsp.confd xsp.initd mod-mono-server.initd
Date: Fri, 14 Dec 2007 20:10:32 +0000	[thread overview]
Message-ID: <E1J3Grg-00072p-0a@stork.gentoo.org> (raw)

jurek       07/12/14 20:10:32

  Added:                mod-mono-server.confd xsp.confd xsp.initd
                        mod-mono-server.initd
  Log:
  dev-dotnet/xsp-1.2.6: version bump
  (Portage version: 2.1.3.19)

Revision  Changes    Path
1.1                  dev-dotnet/xsp/files/1.2.6/mod-mono-server.confd

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.2.6/mod-mono-server.confd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.2.6/mod-mono-server.confd?rev=1.1&content-type=text/plain

Index: mod-mono-server.confd
===================================================================
# Config file for /etc/init.d/mod-mono-server
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/xsp/files/1.2.6/mod-mono-server.confd,v 1.1 2007/12/14 20:10:31 jurek Exp $

# Configuration directives for mod-mono-server.exe. For more information on
# these variables, see the man page for xsp(1).

# This is the document root; trailing slash is not necessary
#MonoServerRootDir="/usr/lib/xsp/test"

# Directory to search for files with an `.webapp' extension.
#MonoApplicationsConfigDir="/usr/lib/xsp/test"

# Comma separated list of directories (in the form virtual:real) for all
# applications managed by the server. For example:
#   /app1:/var/www/localhost/htdocs/app1,/app2:/var/www/localhost/htdocs/app2
MonoApplications="/mono:/usr/lib/xsp/test"

# The communication channel used between mod-mono-server and mod_mono.
#   unix - A unix socket
#   tcp  - A TCP connection
MonoServerChannel="unix"

# When the comm. channel is "unix", the local filename used by the socket.
UnixSocketFileName="/tmp/mod_mono_server"

# When the comm. channel is "tcp", IP address for the server to listen on.
#MonoServerAddress=127.0.0.1

# When the comm. channel is "tcp", port for the server to listen on.
#MonoServerPort=8080

# If you want to host .NET 2.0 applications you have to set this to 2.
# Otherwise, leave it unchaged
MonoServerVersion=1



1.1                  dev-dotnet/xsp/files/1.2.6/xsp.confd

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.2.6/xsp.confd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.2.6/xsp.confd?rev=1.1&content-type=text/plain

Index: xsp.confd
===================================================================
# Config file for /etc/init.d/xsp
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/xsp/files/1.2.6/xsp.confd,v 1.1 2007/12/14 20:10:31 jurek Exp $

# This is the document root; trailing slash is not necessary
MonoServerRoot=/usr/lib/xsp/test

# Port for the server to run on
MonoServerPort=8000

# If you want to host .NET 2.0 applications you have to set this to 2.
# Otherwise, leave it unchanged
MonoServerVersion=1



1.1                  dev-dotnet/xsp/files/1.2.6/xsp.initd

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.2.6/xsp.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.2.6/xsp.initd?rev=1.1&content-type=text/plain

Index: xsp.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/xsp/files/1.2.6/xsp.initd,v 1.1 2007/12/14 20:10:31 jurek Exp $

depend() {
	need net
	after dotnet
}

start() {
	ebegin "Starting xsp"

	if [ ${MonoServerVersion} -eq 1 ]; then
		xsppath=1.0/xsp.exe
	elif [ ${MonoServerVersion} -eq 2 ]; then
		xsppath=2.0/xsp2.exe
	else
		eerror "MonoServerVersion was not properly set. Check your config file"
		return 1
	fi

	start-stop-daemon --quiet --start \
		--background \
		--make-pidfile \
		--pidfile /var/run/aspnet/xsp.pid \
		--chuid aspnet \
		--exec /usr/bin/mono /usr/lib/mono/${xsppath} -- --root ${MonoServerRoot} --port ${MonoServerPort} --nonstop
	eend $?
}

stop() {
	ebegin "Stopping xsp"
	start-stop-daemon -o --quiet --stop \
		--pidfile /var/run/aspnet/xsp.pid
	eend $?
}




1.1                  dev-dotnet/xsp/files/1.2.6/mod-mono-server.initd

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.2.6/mod-mono-server.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.2.6/mod-mono-server.initd?rev=1.1&content-type=text/plain

Index: mod-mono-server.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/xsp/files/1.2.6/mod-mono-server.initd,v 1.1 2007/12/14 20:10:31 jurek Exp $

depend() {
	use net
	after dotnet
}

start() {
	[ -z "$MonoServerRootDir" ] && \
	MonoServerRootDir="/usr/lib/xsp/test"
	[ -z "$MonoApplications" ] && \
	MonoApplications="/mono:/usr/lib/xsp/test,/:."
	[ -z "$UnixSocketFileName" ] && \
	UnixSocketFileName="/tmp/mod_mono_server"
	[ -z "$MonoServerAddress" ] && \
	MonoServerAddress=127.0.0.1
	[ -z "$MonoServerPort" ] && \
	MonoServerPort=8080
	[ -z "$MonoServerVersion" ] && \
	MonoServerVersion=1

	MONO_SERVER_OPTS="--root ${MonoServerRootDir} \
--applications ${MonoApplications} --nonstop"

	[ -n "$MonoApplicationsConfigDir" ] && \
	MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \
--appconfigdir ${MonoApplicationsConfigDir}"

	case "$MonoServerChannel" in
	"tcp" )
		MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \
--address ${MonoServerAddress} --port ${MonoServerPort}"
		;;
	
	"unix" )
		[ -f "$UnixSocketFileName" ] && rm -f $UnixSocketFileName
		MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \
--filename ${UnixSocketFileName}"
		;;

	* )
		eerror "Please set a valid value for MonoServerChannel"
		return 1
		;;
	esac

	if [ ${MonoServerVersion} -eq 1 ]; then
		modmonoserverpath=1.0/mod-mono-server.exe
	elif [ ${MonoServerVersion} -eq 2 ]; then
		modmonoserverpath=2.0/mod-mono-server2.exe
	else
		eerror "MonoServerVersion was not properly set. Check your /etc/conf.d/xsp"
		return 1
	fi

	export MONO_SHARED_DIR=/tmp

	ebegin "Starting mod-mono-server"

	start-stop-daemon --quiet --start \
		--background \
		--make-pidfile \
		--pidfile /var/run/aspnet/mod-mono-server.pid \
		--chuid aspnet \
		--exec /usr/bin/mono /usr/lib/mono/${modmonoserverpath} \
		-- $MONO_SERVER_OPTS

	eend $?
}

stop() {
	ebegin "Stopping mod-mono-server"

	start-stop-daemon -o --quiet --stop \
		--pidfile /var/run/aspnet/mod-mono-server.pid

	eend $?
}



-- 
gentoo-commits@gentoo.org mailing list



             reply	other threads:[~2007-12-14 20:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-14 20:10 Jurek Bartuszek (jurek) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-10-07 20:05 [gentoo-commits] gentoo-x86 commit in dev-dotnet/xsp/files/1.2.6: mod-mono-server.confd xsp.confd xsp.initd mod-mono-server.initd Pacho Ramos (pacho)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1J3Grg-00072p-0a@stork.gentoo.org \
    --to=jurek@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox