[mythtv-commits] Ticket #10890: Mythfrontend tries every 30s to start mythlogserver

MythTV noreply at mythtv.org
Mon Oct 22 01:55:23 UTC 2012


#10890: Mythfrontend tries every 30s to start mythlogserver
----------------------------------+-----------------------------
 Reporter:  jyavenard             |          Owner:  beirdo
     Type:  Bug Report - General  |         Status:  assigned
 Priority:  minor                 |      Milestone:  unknown
Component:  MythTV - General      |        Version:  Master Head
 Severity:  medium                |     Resolution:
 Keywords:                        |  Ticket locked:  0
----------------------------------+-----------------------------

Comment (by mythtv@…):

 Launchd is the approved way to kick off server processes in OSX.  It
 expects, generally, to kick off processes on an "as-needed" basis.  This
 bug may well have to do with running afoul of ''launchd'' policy.
 Among the "Required Behaviors" of ''launchd'' processes is the following:

 {{{
 You must not daemonize your process. This includes calling
 the daemon function, calling fork followed by exec, or calling
 fork followed by exit. If you do, launchd thinks your process
 has died. Depending on your property list key settings, launchd
 will either keep trying to relaunch your process until it gives up
 (with a “respawning too fast” error message) or will be unable to
 restart it if it really does die.

 }}}

 http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html

 Is there any real reason to use the ''--daemon'' flag?

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10890#comment:7>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list