On Wed, 03.08.11 07:46, Josh Geisser ([email protected]) 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.
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to