LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 10-06-2009, 02:32 PM   #1
vlyamtse
Member
 
Registered: Apr 2007
Posts: 51

Rep: Reputation: 15
start-stop-daemon problem with java vm


I have a problem trying to run java class as daemon om Hardy.
I have a class JavaDaemonTest.class that creates 'daemon.txt' and writes "Hello Daemon" into it..
If I try:
sudo start-stop-daemon --start -d /var/local/JavaDaemonTest --quiet -b -m -p /var/run/javaDaemonTest.pid --exec /usr/lib/jvm/java-1.5.0-sun/jre/bin/java -- JavaDaemonTest

The command returns "OK" status with message:
Would start /usr/lib/jvm/java-1.5.0-sun/jre/bin/java JavaDaemonTest (as user root[0], and group [0]).
The pid file /var/run/javaDaemonTest.pid is created

but the bytecode is not executed - no file "daemon.txt" is created, and no error messages appear anywhere.

Can someone help me understand how start-stop-daemon can be used with java vm?

One more question: where can I find error messages? Nothing seems to appear in /var/log files, or in "log" if i try to redirect:
var/run/javaDaemonTest.pid --exec /usr/lib/jvm/java-1.5.0-sun/jre/bin/java -- JavaDaemonTest >./log 2>&1

Thanks,
-V
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
new daemon - start and stop questions zoran119 Slackware 3 11-18-2008 05:39 AM
Using debian start-stop-daemon on Centos powadha Linux - Software 1 11-02-2008 05:59 AM
Unexpected error messages with start-stop-daemon markseger Debian 3 10-29-2008 08:14 PM
start-stop-daemon for linux eliufoo Linux - Software 1 02-07-2008 02:12 AM
Logging with Start stop daemon bigsness Linux - General 0 01-19-2005 03:25 PM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration