[CentOS] Startup script woes
cmr at financial.com
Wed Dec 2 10:44:43 UTC 2009
Am Mittwoch, den 02.12.2009, 10:55 +0100 schrieb Robert Bielik:
> 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.
> (I can have up to 5 of these Java services running, each needing a different pidfile).
> This is a BREEZE to do in Debian/Ubuntu with start-stop-daemon!
> Please help!
We are a java shop and use an old/patched debian version of
start-stop-daamon rolled in our own rpm. It works but but one problem
whe have is when java is updated stop/restart won't work because the
inode of the process binary is changed.
Also interesting to have a look at is jsvc, we use that for tomcat and
we are quite happy with it.
Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany
Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany
Management board/Vorstand: Dr. Steffen Boehnert | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach
Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender)
Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553
More information about the CentOS