[systemd-devel] Tomcat.service / PID aquiring

Josh Geisser josh at gebaschtel.ch
Wed Aug 24 07:50:54 PDT 2011


Hi Lennart

Yep, I didn't read the last sentence in the documentation about this parameter. (embarrassing)

Seems to work fine now, start script writes this file and systemd successfully reports the tomcat as running.

Thanks a lot
Cheers
josh

-----Ursprüngliche Nachricht-----
Von: Lennart Poettering [mailto:lennart at poettering.net] 
Gesendet: Mittwoch, 24. August 2011 16:06
An: Josh Geisser
Cc: systemd-devel at lists.freedesktop.org
Betreff: Re: [systemd-devel] Tomcat.service / PID aquiring

On Wed, 03.08.11 07:46, Josh Geisser (josh at gebaschtel.ch) wrote:

> Hi there
> 
> We developt an own rc script a while ago for maintaining our tomcats. (mainly improved shutdown behaviour with eventual kill). 
> The script takes start/Stopp/status as arguments, and identifies the right PID by a filtered 'ps'. It also keeps track of the tomcats pid in an own pid-file.
> 
> So far the ExecStart and ExecStop is clear, but is there something
> like ExecStatus? 

No there isn't. For that the best thing is just to supply an indepdent
tool, as there is little real need to integrate that in systemd itself.

> Or, is it possible that systemd reads the service-pid
> from a file generated by not himself?

As mentioned, use PIDFile= to let system know which PID file it should
read. Note that systemd never writes PID files, it only reads them.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list