ifolder/dev-dotnet/xsp/files/2.2/xsp.initd
Mario Fetka ffe9b06f82 Readd old mono for iFolder System
Package-Manager: portage-2.2.0_alpha166
RepoMan-Options: --force
2013-04-20 08:03:40 +02:00

39 lines
853 B
Plaintext

#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: xsp.initd,v 1.1 2009/01/18 17:44:04 loki_val 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 $?
}