[RFC] add --pidfile switch to write libo pid to a file
Riccardo Magliocchetti
riccardo.magliocchetti at gmail.com
Mon Mar 18 06:41:12 PDT 2013
Hi Jan,
Il 18/03/2013 14:08, Jan Holesovsky ha scritto:
> Hi Riccardo,
>
> Riccardo Magliocchetti píše v So 16. 03. 2013 v 19:55 +0100:
>
>> attached a patch to add a switch to have libreoffice store its pid in a
>> file. I need that so that when libo runs in headless mode i can have a
>> supervisor process checking if libo is running and in case just restart
>> it. The error handling is a bit lame, do we have an helper to create a
>> file with its content with one function call somewhere? that could help
>> cleaning the pidfile creation code a bit i think.
>
> Without having read your patch too deeply, why not to use the
> existing .lock file that can be found in the user configuration when LO
> is running:
>
> $ cat ~/.config/libreoffice/4-suse/.lock
[snip]
The standard practice is to use just a plain file with the pid inside,
other tools won't parse an ini file just to find the pid.
thanks,
riccardo
More information about the LibreOffice
mailing list