[Lazarus] Linux service

Michael Van Canneyt michael at freepascal.org
Tue Mar 19 17:10:01 CET 2013



On Tue, 19 Mar 2013, Antonio Fortuny wrote:

>
>
> Le 19/03/2013 16:52, Antonio Fortuny a écrit :
>> I finally succeded to manage the service. The basic developmment done in
>> WIN32 has been preserved. I've now a unique source project compiling and
>> running on WIN32 and LINUX.
>> So far, so good.
>> There is only one thing which worries me: when stopping the service (aka
>> service ipserviced stop) the service is really stopped but the event
>> OnStop is not fired.
>> In the daemon script this line is executed on stop:
>>      killproc -p ${PID_FILE} -t 10 ${IPSERVICE_BIN} -TERM
>> and it works. Same if I use -HUP.
>> Maybe did I miss something
>
> The shutdown event does work.

That is normal. There is no real STOP on linux. 
I had planned to use USR1/USR2 for this, but didn't get to that.

Michael.


More information about the Lazarus mailing list