[Qt-interest] QtService startup on Mac
Daniel Grubbs
dgrubbs at dexrex.com
Fri Jul 31 23:07:34 CEST 2009
Thanks, I'll bet that's the problem. I guess I'll run it as a Startup Item.
launchd seems nicer, but that's the way the cookie bounces.
Dan
On Fri, Jul 31, 2009 at 4:32 PM, Nehemiah Dacres <dacresni at slu.edu> wrote:
>
>
> On Fri, Jul 31, 2009 at 3:31 PM, Nehemiah Dacres <dacresni at slu.edu> wrote:
>
>>
>> http://www.qtsoftware.com/products/appdev/add-on-products/catalog/4/Utilities/qtservice
>>
>> It looks like QtSerivce uses it, according to the Changes part of the
>> above link. I would suggest you either not use Launchd or QtService. It
>> looks like you will probibly give up launchd sense the latter breaks
>> portablility?
>> If Qt offers this functionality, perhaps you should trust it does
>> everything else correctly and not try to help it.
>> On Fri, Jul 31, 2009 at 3:21 PM, Daniel Grubbs <dgrubbs at dexrex.com>wrote:
>>
>>> Well, I guess that might cause the problem, but I don't think I've got
>>> anything that forks, unless QLibrary forks somewhere?
>>>
>>> Dan
>>>
>>>
>>> On Fri, Jul 31, 2009 at 4:13 PM, Nehemiah Dacres <dacresni at slu.edu>wrote:
>>>
>>>> sorry for the caps, I was Kind of off when I wrote that. I believe your
>>>> daemon uses a function that is forking another process which, (if im not
>>>> mistaken) isn't allowed in launchd created processes. Let me check the
>>>> documentation to make sure. but avoid fork, if your daemon forks, try
>>>> launching that process with launchd instead.
>>>>
>>>>
>>>> On Fri, Jul 31, 2009 at 3:07 PM, Nehemiah Dacres <dacresni at slu.edu>wrote:
>>>>
>>>>> DO NOT USE FORK IN Launchd
>>>>>
>>>>>
>>>>>
>>>>> if im not mistaken.
>>>>>
>>>>> On Fri, Jul 31, 2009 at 1:34 PM, Daniel Grubbs <dgrubbs at dexrex.com>wrote:
>>>>>
>>>>>> Every 10 seconds:
>>>>>>
>>>>>> 7/31/09 12:33:38 PM com.dexrex.launchdaemon[96] The service Daemon
>>>>>> could not start
>>>>>>
>>>>>> 7/31/09 12:33:38 PM com.apple.launchd[1] (com.dexrex.launchdaemon[96])
>>>>>> Exited with exit code: 252
>>>>>>
>>>>>> 7/31/09 12:33:38 PM com.apple.launchd[1] (com.dexrex.launchdaemon)
>>>>>> Throttling respawn: Will start in 10 seconds
>>>>>>
>>>>>>
>>>>>> On Fri, Jul 31, 2009 at 1:26 PM, Brad Howes <howes at ll.mit.edu> wrote:
>>>>>>
>>>>>>>
>>>>>>> On Jul 31, 2009, at 1:04 PM, Daniel Grubbs wrote:
>>>>>>>
>>>>>>> > This is launched by launchd and partially works. It starts the
>>>>>>> > daemon fine, but doesn't work to keep it alive. If I take out the
>>>>>>> > "<key>OnDemand</key><true/>", which shouldn't be needed, launchd
>>>>>>> > starts the daemon twice and then repeatedly tries to start it again
>>>>>>> > every 10 seconds. It doesn't seem to recognize that it is already
>>>>>>> > running twice. Adding the OnDemand key prevents it from trying to
>>>>>>> > restart repeatedly (It only starts once, and works fine.) but is no
>>>>>>> > longer restarted if it dies.
>>>>>>>
>>>>>>>
>>>>>>> What does your Console log show?
>>>>>>>
>>>>>>> Brad
>>>>>>>
>>>>>>> --
>>>>>>> Brad Howes
>>>>>>> Group 42
>>>>>>> MIT Lincoln Laboratory • 244 Wood St. • Lexington, MA 02173
>>>>>>> Phone: 781.981.5292 • Fax: 781.981.3495 • Secretary: 781.981.7420
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Qt-interest mailing list
>>>>>>> Qt-interest at trolltech.com
>>>>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Qt-interest mailing list
>>>>>> Qt-interest at trolltech.com
>>>>>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Nehemiah I. Dacres
>>>>> Secretary
>>>>> Math and Computer Science Club
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Nehemiah I. Dacres
>>>> Secretary
>>>> Math and Computer Science Club
>>>>
>>>
>>>
>>
>>
>> --
>> Nehemiah I. Dacres
>> Secretary
>> Math and Computer Science Club
>>
>
>
>
> --
> Nehemiah I. Dacres
> Secretary
> Math and Computer Science Club
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090731/7267431d/attachment.html
More information about the Qt-interest-old
mailing list