/srv/irclogs.ubuntu.com/2013/02/15/#ubuntu-mythtv.txt

dkeithhttp://www.amazon.com/Avoid-Huge-Ships-John-Trimmer/product-reviews/0870334336/ref=dp_top_cm_cr_acr_txt?ie=UTF8&showViewpoints=113:40
dkeithignore this - my chat client's gone wild13:41
qwebirc75393im going  to install mythbuntu on my pc connected to my telly and connect it to my router, will windows see it from my laptop15:56
slipconJust looking for a confirmation on an upgrade path... I'm running Mythbuntu 11.04, mythtv 0.24-fixes.  I think I eventually want to end up on 12.04 LTS, but that only supports 0.25+... so would my path be to upgrade mythtv to 0.25 using dpkg-reconfigure mythbuntu-repos, and then once thats working well use 'do-release-upgrade' to go from 11.04 to 11.10 to 12.04?17:32
mrandslipcon: yes, you could do that if you want to disconnect the mythtv functionality upgrade from the OS upgrade.  Or you could just do the release upgrades and it would also get you to 0.25.18:40
dekarltgm4883: superm1, any opinion on adding http://paste.ubuntu.com/1659151/ to master packagings upstart script as a workaround to the backend not stopping for a long time after being killed? (I'm just preparing the packaging/script so I can test it this weekend)20:00
tgm4883dekarl, I've looked at that today. I was planning on asking in the upstart channel if there was a way to ensure something dies when it's killed20:02
tgm4883dekarl, or is that not to fix the issue with the backend not dieing when requested20:02
dekarlaye20:03
dekarlI think the issue might be that upstart only waits 5 seconds and the moves on20:03
dekarls/the moves/then moves/20:03
dekarlfrom http://upstart.ubuntu.com/cookbook/#stopping-a-job "Upstart waits for up to kill timeout seconds (default 5 seconds) for the process to end."20:04
tgm4883dekarl, so extending that would fix it?20:05
tgm4883dekarl, cause we can do that http://upstart.ubuntu.com/cookbook/#kill-timeout20:05
tgm4883dekarl, I thought the problem is we ask it to stop and it doesn't stop and then upstart loses track of it20:06
dekarlis there a state transition diagram somewhere with all the parameters and states? I find it a hard to get it all together20:06
tgm4883dekarl, how should we be asking the backend to stop? by default, it uses SIGTERM20:06
dekarl"kill signal" is the normal signal but "kill timeout" is how long upstart waits before killing... doesnt make sense to me20:07
tgm4883dekarl, http://upstart.ubuntu.com/cookbook/#job-states20:07
tgm4883dekarl, so you ask the backend to stop "via service mythtv-backend stop" it then waits 5 seconds and then sends SIGTERM20:08
tgm4883dekarl, I'm assuming that timeout is to allow any scripts in the job to finish running20:08
dekarlsounds like 5 seconds for the pre-stop script20:08
tgm4883yea20:08
tgm4883so we can change it to send something else other than SIGTERM, or we can extend that timeout20:09
tgm4883but IDK if that timeout thing is what is causing it20:09
tgm4883maybe we should send something better than SIGTERM20:09
dekarlI think the post-stop script that sends a kill after some time of waiting isn't so bad. It gives the backend some time for the "really doing something" part but cuts off the "taking ages" part early20:11
dekarlone could argue that 4 seconds is a bit on the short side and change it to 30 or something20:12
dekarlbut I haven't timed the shutdown with a stop watch, yet :)20:12
dekarlhmm, according to  http://upstart.ubuntu.com/cookbook/#stopping-a-job SIGTERM is sent and after 5 seconds of waiting SIGKILL is sent.20:16
tgm4883hmm20:18
tgm4883superm1, ping20:18
tgm4883dekarl, when the backend continues to run, is it a zombie process?20:19
tgm4883dekarl, superm1 I'd imagine that when it sends SIGTERM and SIGKILL, it's sending it to the mythbackend process, not the mythbackend.real process20:19
tgm4883I wonder if that is causing some of the problems20:20
dekarldinner is ready, bbl20:23
tgm4883I bet we need to do something special with http://upstart.ubuntu.com/cookbook/#expect20:23
tgm4883dekarl, I've got something for you to test when you get back21:03
dekarltgm4883: re21:12
tgm4883tgm4883> rhpot1991, yea, just see what PID 'sudo service mythtv-backend status' reports21:12
tgm4883<tgm4883> rhpot1991, and if that is the right PID for mythbackend21:12
tgm4883dekarl, can you do the same ^^21:12
dekarlmythtv-backend start/running, process 432221:13
dekarl 4323 ?        Sl    30:14 /usr/bin/mythbackend --syslog local7 --user mythtv --verbose channel,eit,record,siparser21:13
dekarl  4322 ?        Ss     0:00 /bin/sh -e /proc/self/fd/921:13
tgm4883awesome21:13
tgm4883dekarl, ok, that is what I expected21:13
tgm4883and I have a fix for that21:13
dekarlexpect fork?21:13
tgm4883dekarl, no21:14
tgm4883LANG=$LANG /usr/bin/mythbackend --syslog local7 --user mythtv21:14
tgm4883that should be21:14
tgm4883LANG=$LANG exec /usr/bin/mythbackend --syslog local7 --user mythtv21:14
tgm4883dekarl, can you change to that, restart the backend service and check again21:14
dekarlI can test it in about 15 minutes21:15
tgm4883dekarl, great thanks :)21:16
tgm4883dekarl, I think that should fix the issue we're seeing. Upstart is sending the SIGTERM to the wrong process21:16
tgm4883which still works most of the time21:16
dekarlmythtv-backend start/running, process 688321:28
dekarl 6883 ?        Ssl    0:00 /usr/bin/mythbackend --syslog local7 --user mythtv --verbose channel,eit,record,siparser21:28
dekarlno it waits longer when stopping :) and there is no mythbackend once its done waiting21:29
tgm4883dekarl, sweet21:29
dekarls/no it/now it/21:29
tgm4883dekarl, previously you were able to reproduce the issue with the backend not stopping when asked?21:29
dekarlappears to wait 5 seconds and then kill... just as documented :)21:29
tgm4883\o/21:30
dekarlthe service command would return basically immidiatly from stopping21:30
dekarland the backend would hang around for a minute or two21:30
tgm4883dekarl, good to know. So this is much much better :)21:31
dekarllong enough for dpkg to perform an update of all new debs from the packaging process and start the new version21:31
tgm4883I'm going to see if I can get that fix pushed fast21:31
dekarlhttp://paste.ubuntu.com/1659781/ I can push it if you like21:32
tgm4883dekarl, you've got access (forgive me, I'm not sure who all the mythtv developers are)21:32
tgm4883err, that was a question ^21:32
dekarlaye, I can push to packaging21:33
tgm4883is 5 seconds enough to wait?21:33
dekarlBut I'm happy to cut carrots for the baby girl instead :)21:33
dekarlthat's something I can't answer quickly, might ask over in #mythtv21:33
tgm4883will do21:33
dekarlOk, I'll cut carrots then :)21:34
tgm4883dekarl, thanks, I might bug you to push that later :)21:34

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!