You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Michal Slocinski <ms...@gmail.com> on 2005/05/11 20:04:14 UTC

Commons Daemon issue ...

Hi,

I've problems with running commons-daemon under linux with non-root
privileges. I've one simple implementation of
org.apache.commons.daemon.Daemon interface (mms.Main) and trying to
run this one. Yes, I've read
http://issues.apache.org/bugzilla/show_bug.cgi?id=33154 but problem
still exists even while I've capability loaded (Debian Sarge, kernel
2.6.8-2-686)

I'm running:
./jsvc -debug -cp my-daemon.jar:commons-daemon.jar mms.Main

and last lines of debug are:
jsvc.exec debug: Running w/
LD_LIBRARY_PATH=/usr/lib/j2sdk1.5-sun/jre/lib/i386/client:/usr/lib/j2sdk1.5-sun/jre/lib/i386
jsvc.exec debug: redirecting stdout to /dev/null and stderr to /dev/null
jsvc.exec error: Cannot open PID file /var/run/jsvc.pid, PID is 5609
jsvc.exec error: syscall failed in set_caps
jsvc.exec error: Service exit with a return value of 4

and jsvc exited.

Do you have any ideas what to do? I can put full debug log if it may
help ... I heard that Tomcat uses also commons-daemon, but I've 5.0.25
and it runs fine.

-- 
best regards,
Michal

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org