[Lazarus] Linux service

Michael Van Canneyt michael at freepascal.org
Fri Mar 15 13:48:33 CET 2013



On Fri, 15 Mar 2013, Antonio Fortuny wrote:

>
>
> Le 15/03/2013 12:42, Michael Van Canneyt a écrit :
>> 
>> 
>> On Fri, 15 Mar 2013, Antonio Fortuny wrote:
>> 
>>>> 
>>>> -> the process is started and writes to the system log. You should see
>>>> what happens in /var/log/syslog.
>>> /var/log/messages:
>>> Mar 15 11:14:29 linux-5yg5 ipservice: [Info] Daemon Sita - Pocket
>>> service current status: Start Pending
>>> Mar 15 11:14:29 linux-5yg5 ipservice: [Info] Failed to start daemon
>>> SitaPocketService : Semaphore init failed (possibly too many
>>> concurrent threads)
>>> 
>>> both messages are written on every launch. The progran does not use
>>> any explicit semaphore
>> 
>> did you add
>> {$ifdef unix}
>> uses cthreads;
>> {$endif}
>> 
>> To your program's uses clause ?
> yes, all units refering to threads

Did you define UseCThreads ? It is not automatically defined.

Michael.


More information about the Lazarus mailing list