[mythtv-commits] Ticket #10890: Mythfrontend tries every 30s to start mythlogserver
MythTV
noreply at mythtv.org
Sat Feb 2 23:45:31 UTC 2013
#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 xdrcft@…):
I've done some more experimenting and have found a way to get
mythlogserver to
do its job on OS-X in a way that seems perfectly normal.
1) Edit osx-packager-qtsdk.pl so that the mythlogserver binary is included
in the
MythBackend.app bundle (adding it to the list at around line 1910), and
execute
that Perl script to build the app.
2) Put the following mythlogserver.plist in ~/Library/LaunchAgents/:
{{{
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>mythlogserver</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/MythTV/MythBackend.app/Contents/MacOS/mythlogserver</string>
</array>
</dict>
</plist>
}}}
3) Put the following MythBackend.plist in ~/Library/LaunchAgents/ :
{{{
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>MythBackend</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/MythTV/MythBackend.app/Contents/MacOS/MythBackend</string>
<string>--logpath</string>
<string>/Users/dgktkr/Library/Logs/MythBackend</string>
</array>
</dict>
</plist>
}}}
Now when I boot up and log in, MythBackend and mythlogserver are running
and logs are written in the expected places. And neither MythBackend nor
mythlogserver crash.
I tried running mythlogserver without the KeepAlive option in the plist,
and indeed, the process goes away and returns as needed for logging,
but looking at cpu usage in Activity Monitor indicates that significant
effort takes place to build up and tear down the process. KeepAlive keeps
the
process there all the time, but seems to put less of a load on the system.
dgktkr
--
Ticket URL: <http://code.mythtv.org/trac/ticket/10890#comment:11>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list