[CentOS] Startup script woes

John Doe jdmls at yahoo.com
Wed Dec 2 11:00:51 UTC 2009


From: Robert Bielik <robert.bielik at xponaut.se>
> Ok, I think I'm going nuts. I simply want to startup a Java Service like so:
> daemon --pidfile=$PIDFILE --user $USER "cd $WORKING_DIR && /usr/bin/java 
> $DAEMON_ARGS >/dev/null 2>&1 &"
> I can get it to startup alrite, but the litte "thingy" is that I have no way of 
> getting the process ID of the
> started service to put in the PIDFILE, in order for me to later on be able to 
> stop the service.

Try without the '='

JD


      



More information about the CentOS mailing list