FreeBSD RCng (was Re: [Dart] How to run DartServer)
Olivier Warin
olivier.warin at netasq.com
Mon Mar 27 08:55:29 EST 2006
# dart2 startup script.
#
name="dart2"
case "$1" in
start)
echo -n ' '
su -f -m www -c /home/daffy/run_projet.sh > /dev/
null && echo -n 'Dart2'
;;
stop)
echo -n ' '
su -f -m daffy -c "pkill -f java" > /dev/null 2>&1 ;
echo -n 'Dart2'
;;
*)
echo ""
echo "Usage: ${name} { start | stop }"
echo ""
exit 64
;;
esac
run_projet.sh is simply a 'nohup java -jar DartServer.jar TestServer
TestProject'
Le 27 mars 06 à 15:51, Blezek, Daniel J (GE, Research) a écrit :
> Matt,
>
> The library seems reasonable. One could also write the proper
> rc.d script. I have now idea how to do this on Windows... I use
> the script below to interactively start our server on www.na-
> mic.org:8081. All is not happy because I need to manually kill it...
>
> dart at na-mic1:/projects/Dart$ more start.sh
>
> # Create
> # java -classpath DartServer.jar dart.DartServer --createserver
> NAMICServer
> # java -classpath DartServer.jar dart.DartServer --initializeserver
> NAMICServer
> # java -classpath DartServer.jar dart.DartServer --create Insight
> # java -classpath DartServer.jar dart.DartServer --create CMake
> # java -classpath DartServer.jar dart.DartServer --create Public
> # java -classpath DartServer.jar dart.DartServer --create NAMICSandbox
> # java -classpath DartServer.jar dart.DartServer --create Dart
> # java -classpath DartServer.jar -Xmx512M dart.DartServer -l
> RollingLog.properties --initializ
> e --refresh NAMICServer Insight CMake Public NAMICSandbox &
> # ./DartClient --shutdown Insight
>
>
> nohup java -Xmx512M -jar DartServer.jar -l RollingLog.properties --
> refreshServer --refresh NAM
> ICServer Insight CMake Public NAMICSandbox Dart &
>
> -dan
>
> -----Original Message-----
> From: dart-bounces+blezek=crd.ge.com at public.kitware.com
> [mailto:dart-bounces+blezek=crd.ge.com at public.kitware.com]On Behalf Of
> Matt England
> Sent: Saturday, March 25, 2006 1:12 AM
> To: dart at public.kitware.com
> Cc: mengland at mengland.net
> Subject: [Dart] How to run DartServer.jar as a daemon...if at all?
>
>
> How can one best run DartServer.jar (any flavor I can reliably
> build or
> acquired that works with ctest 2.2.x as per my other email
> thread...and
> presumably this is not DartServer0.6.x) as a daemon...if at all?
>
> I've used this utility in the past for similar things:
>
> http://libslack.org/daemon/
>
> Any other recommendations?
>
> Any way to get DartServer.jar to report to errors syslog on a unix
> system?
>
> -Matt
>
> _______________________________________________
> Dart mailing list
> Dart at public.kitware.com
> http://public.kitware.com/mailman/listinfo/dart
> _______________________________________________
> Dart mailing list
> Dart at public.kitware.com
> http://public.kitware.com/mailman/listinfo/dart
>
Bien cordialement,
--
Olivier Warin
Netasq
Département R&D - Labo QA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2643 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/dart/attachments/20060327/6ad070a5/smime.bin
More information about the Dart
mailing list