[systemd-devel] Tomcat.service / PID aquiring

Lennart Poettering lennart at poettering.net
Wed Aug 24 07:06:29 PDT 2011


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