El dom, 13-05-2007 a las 22:20 +0200, Thijs Triemstra | Collab escribió:
> hi,
>
> when I run the new red5 shutdown script it doesn't shut down the
> server, it only prints the command line options like below. How do
> you use this script? I'm testing it on macosx 10.4.9
>
> Collab-Mactel:~/Sites/software/red5/trunk thijstriemstra$ ./red5-
> shutdown.sh
> Usage: java [-options] class [args...]
> (to execute a class)
> or java [-options] -jar jarfile [args...]
> (to execute a jar file)
>
> where options include:
> -client to select the "client" VM
> -server to select the "server" VM
> -jvm is a synonym for the "client" VM [deprecated]
> -hotspot is a synonym for the "client" VM [deprecated]
> The default VM is client.
>
> -cp <class search path of directories and zip/jar files>
> -classpath <class search path of directories and zip/jar files>
> A : separated list of directories, JAR archives,
> and ZIP archives to search for class files.
> -D<name>=<value>
> set a system property
> -verbose[:class|gc|jni]
> enable verbose output
> -version print product version and exit
> -version:<value>
> require the specified version to run
> -showversion print product version and continue
> -jre-restrict-search | -jre-no-restrict-search
> include/exclude user private JREs in the version
> search
> -? -help print this help message
> -X print help on non-standard options
> -ea[:<packagename>...|:<classname>]
> -enableassertions[:<packagename>...|:<classname>]
> enable assertions
> -da[:<packagename>...|:<classname>]
> -disableassertions[:<packagename>...|:<classname>]
> disable assertions
> -esa | -enablesystemassertions
> enable system assertions
> -dsa | -disablesystemassertions
> disable system assertions
> -agentlib:<libname>[=<options>]
> load native agent library <libname>, e.g. -
> agentlib:hprof
> see also, -agentlib:jdwp=help and -
> agentlib:hprof=help
> -agentpath:<pathname>[=<options>]
> load native agent library by full pathname
> -javaagent:<jarpath>[=<options>]
> load Java programming language agent, see
> java.lang.instrument
Hi, i found this unresolved message in the list with same error for me
in an Ubuntu feisty box with red5 0.6.1 source.
This is the shutdown script:
-----------------------------------------------------------
#!/bin/bash
(... stuff to locate java... works fine)
# stop red5
exec $JAVA -Djavax.net.ssl.keyStore=conf/keystore.jmx
-Djavax.net.ssl.keyStorePassword=password -Djava.security.manager
-Djava.security.policy=conf/red5.policy -cp red5.jar;conf
org.red5.server.Shutdown 9999 red5user changeme
-----------------------------------------------------------
I don't like this final "changeme" :-) (same with password, red5user,
the ";" between red5.jar and conf...
What's the correct shutdown script? Otherway i always have to kill the
java process and the rmiregistry separately.
Thanks,
--
Jonathan Hernández aka jBilbo
jhernandezblog at gmail.com
http://jhernandez.gpltarragona.org/blog_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org