1 |
jurek 08/05/31 12:39:49 |
2 |
|
3 |
Added: mod-mono-server.confd mod-mono-server.initd |
4 |
xsp.confd xsp.initd |
5 |
Log: |
6 |
dev-dotnet/xsp: version bump (bug #213381) |
7 |
(Portage version: 2.1.4.4) |
8 |
(Signed Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 dev-dotnet/xsp/files/1.9/mod-mono-server.confd |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.9/mod-mono-server.confd?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.9/mod-mono-server.confd?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: mod-mono-server.confd |
17 |
=================================================================== |
18 |
# Config file for /etc/init.d/mod-mono-server |
19 |
# $Id: mod-mono-server.confd,v 1.1 2008/05/31 12:39:49 jurek Exp $ |
20 |
|
21 |
# Configuration directives for mod-mono-server.exe. For more information on |
22 |
# these variables, see the man page for xsp(1). |
23 |
|
24 |
# This is the document root; trailing slash is not necessary |
25 |
#MonoServerRootDir="/usr/lib/xsp/test" |
26 |
|
27 |
# Directory to search for files with an `.webapp' extension. |
28 |
#MonoApplicationsConfigDir="/usr/lib/xsp/test" |
29 |
|
30 |
# Comma separated list of directories (in the form virtual:real) for all |
31 |
# applications managed by the server. For example: |
32 |
# /app1:/var/www/localhost/htdocs/app1,/app2:/var/www/localhost/htdocs/app2 |
33 |
MonoApplications="/mono:/usr/lib/xsp/test" |
34 |
|
35 |
# The communication channel used between mod-mono-server and mod_mono. |
36 |
# unix - A unix socket |
37 |
# tcp - A TCP connection |
38 |
MonoServerChannel="unix" |
39 |
|
40 |
# When the comm. channel is "unix", the local filename used by the socket. |
41 |
UnixSocketFileName="/tmp/mod_mono_server" |
42 |
|
43 |
# When the comm. channel is "tcp", IP address for the server to listen on. |
44 |
#MonoServerAddress=127.0.0.1 |
45 |
|
46 |
# When the comm. channel is "tcp", port for the server to listen on. |
47 |
#MonoServerPort=8080 |
48 |
|
49 |
# If you want to host .NET 2.0 applications you have to set this to 2. |
50 |
# Otherwise, leave it unchaged |
51 |
MonoServerVersion=1 |
52 |
|
53 |
|
54 |
|
55 |
1.1 dev-dotnet/xsp/files/1.9/mod-mono-server.initd |
56 |
|
57 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.9/mod-mono-server.initd?rev=1.1&view=markup |
58 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.9/mod-mono-server.initd?rev=1.1&content-type=text/plain |
59 |
|
60 |
Index: mod-mono-server.initd |
61 |
=================================================================== |
62 |
#!/sbin/runscript |
63 |
# Copyright 1999-2007 Gentoo Foundation |
64 |
# Distributed under the terms of the GNU General Public License v2 |
65 |
# $Id: mod-mono-server.initd,v 1.1 2008/05/31 12:39:49 jurek Exp $ |
66 |
|
67 |
depend() { |
68 |
use net |
69 |
after dotnet |
70 |
} |
71 |
|
72 |
start() { |
73 |
[ -z "$MonoServerRootDir" ] && \ |
74 |
MonoServerRootDir="/usr/lib/xsp/test" |
75 |
[ -z "$MonoApplications" ] && \ |
76 |
MonoApplications="/mono:/usr/lib/xsp/test,/:." |
77 |
[ -z "$UnixSocketFileName" ] && \ |
78 |
UnixSocketFileName="/tmp/mod_mono_server" |
79 |
[ -z "$MonoServerAddress" ] && \ |
80 |
MonoServerAddress=127.0.0.1 |
81 |
[ -z "$MonoServerPort" ] && \ |
82 |
MonoServerPort=8080 |
83 |
[ -z "$MonoServerVersion" ] && \ |
84 |
MonoServerVersion=1 |
85 |
|
86 |
MONO_SERVER_OPTS="--root ${MonoServerRootDir} \ |
87 |
--applications ${MonoApplications} --nonstop" |
88 |
|
89 |
[ -n "$MonoApplicationsConfigDir" ] && \ |
90 |
MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \ |
91 |
--appconfigdir ${MonoApplicationsConfigDir}" |
92 |
|
93 |
case "$MonoServerChannel" in |
94 |
"tcp" ) |
95 |
MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \ |
96 |
--address ${MonoServerAddress} --port ${MonoServerPort}" |
97 |
;; |
98 |
|
99 |
"unix" ) |
100 |
[ -f "$UnixSocketFileName" ] && rm -f $UnixSocketFileName |
101 |
MONO_SERVER_OPTS="${MONO_SERVER_OPTS} \ |
102 |
--filename ${UnixSocketFileName}" |
103 |
;; |
104 |
|
105 |
* ) |
106 |
eerror "Please set a valid value for MonoServerChannel" |
107 |
return 1 |
108 |
;; |
109 |
esac |
110 |
|
111 |
if [ ${MonoServerVersion} -eq 1 ]; then |
112 |
modmonoserverpath=1.0/mod-mono-server.exe |
113 |
elif [ ${MonoServerVersion} -eq 2 ]; then |
114 |
modmonoserverpath=2.0/mod-mono-server2.exe |
115 |
else |
116 |
eerror "MonoServerVersion was not properly set. Check your /etc/conf.d/xsp" |
117 |
return 1 |
118 |
fi |
119 |
|
120 |
export MONO_SHARED_DIR=/tmp |
121 |
|
122 |
ebegin "Starting mod-mono-server" |
123 |
|
124 |
start-stop-daemon --quiet --start \ |
125 |
--background \ |
126 |
--make-pidfile \ |
127 |
--pidfile /var/run/aspnet/mod-mono-server.pid \ |
128 |
--chuid aspnet \ |
129 |
--exec /usr/bin/mono /usr/lib/mono/${modmonoserverpath} \ |
130 |
-- $MONO_SERVER_OPTS |
131 |
|
132 |
eend $? |
133 |
} |
134 |
|
135 |
stop() { |
136 |
ebegin "Stopping mod-mono-server" |
137 |
|
138 |
start-stop-daemon -o --quiet --stop \ |
139 |
--pidfile /var/run/aspnet/mod-mono-server.pid |
140 |
|
141 |
eend $? |
142 |
} |
143 |
|
144 |
|
145 |
|
146 |
1.1 dev-dotnet/xsp/files/1.9/xsp.confd |
147 |
|
148 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.9/xsp.confd?rev=1.1&view=markup |
149 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.9/xsp.confd?rev=1.1&content-type=text/plain |
150 |
|
151 |
Index: xsp.confd |
152 |
=================================================================== |
153 |
# Config file for /etc/init.d/xsp |
154 |
# $Id: xsp.confd,v 1.1 2008/05/31 12:39:49 jurek Exp $ |
155 |
|
156 |
# This is the document root; trailing slash is not necessary |
157 |
MonoServerRoot=/usr/lib/xsp/test |
158 |
|
159 |
# Port for the server to run on |
160 |
MonoServerPort=8000 |
161 |
|
162 |
# If you want to host .NET 2.0 applications you have to set this to 2. |
163 |
# Otherwise, leave it unchanged |
164 |
MonoServerVersion=1 |
165 |
|
166 |
|
167 |
|
168 |
1.1 dev-dotnet/xsp/files/1.9/xsp.initd |
169 |
|
170 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.9/xsp.initd?rev=1.1&view=markup |
171 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-dotnet/xsp/files/1.9/xsp.initd?rev=1.1&content-type=text/plain |
172 |
|
173 |
Index: xsp.initd |
174 |
=================================================================== |
175 |
#!/sbin/runscript |
176 |
# Copyright 1999-2007 Gentoo Foundation |
177 |
# Distributed under the terms of the GNU General Public License v2 |
178 |
# $Id: xsp.initd,v 1.1 2008/05/31 12:39:49 jurek Exp $ |
179 |
|
180 |
depend() { |
181 |
need net |
182 |
after dotnet |
183 |
} |
184 |
|
185 |
start() { |
186 |
ebegin "Starting xsp" |
187 |
|
188 |
if [ ${MonoServerVersion} -eq 1 ]; then |
189 |
xsppath=1.0/xsp.exe |
190 |
elif [ ${MonoServerVersion} -eq 2 ]; then |
191 |
xsppath=2.0/xsp2.exe |
192 |
else |
193 |
eerror "MonoServerVersion was not properly set. Check your config file" |
194 |
return 1 |
195 |
fi |
196 |
|
197 |
start-stop-daemon --quiet --start \ |
198 |
--background \ |
199 |
--make-pidfile \ |
200 |
--pidfile /var/run/aspnet/xsp.pid \ |
201 |
--chuid aspnet \ |
202 |
--exec /usr/bin/mono /usr/lib/mono/${xsppath} -- --root ${MonoServerRoot} --port ${MonoServerPort} --nonstop |
203 |
eend $? |
204 |
} |
205 |
|
206 |
stop() { |
207 |
ebegin "Stopping xsp" |
208 |
start-stop-daemon -o --quiet --stop \ |
209 |
--pidfile /var/run/aspnet/xsp.pid |
210 |
eend $? |
211 |
} |
212 |
|
213 |
|
214 |
|
215 |
|
216 |
-- |
217 |
gentoo-commits@l.g.o mailing list |