Roxen.git/
server/
start
Branch:
Tag:
Non-build tags
All tags
No tags
2005-11-18
2005-11-18 16:42:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>
938bd6bde9d7b6931ec491b0743a10471e9be94b (
6
lines) (+
4
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Now enables threads on Solaris 10 too.
Rev: server/start:1.222
1:
#!/bin/sh #
-
# $Id: start,v 1.
221
2004
/
08/
11
15
:
18
:
46
grubba Exp $
+
# $Id: start,v 1.
222
2005
/
11
/
18
16
:
42
:
16
grubba Exp $
### If --silent-start is given as the first argument, ### nothing will be printed to stdout by the script.
117:
# Enable threads (if available) on Solaris. # Most other OS's have thread bugs that cause them or Roxen to crash. if uname | grep 'SunOS' >/dev/null 2>&1; then
-
if
uname
-r
|
grep
'
5\
.[
5
-9]
' >
/
dev
/
null
2>&1
; then
+
vers="`uname
-r|
sed
-e
'
s/5
.
\(
[
0
-9]
*\)
/
\1
/
p'
-ed`"
+
if [ "$vers" -ge "5" ]
; then
# FIXME: What about Solaris 10+ (SunOS 5.10+)? # if [ $verbose -gt 0 ] ; then # dp "Solaris 2.5 or later detected. Using threads by default."