/srv/irclogs.ubuntu.com/2010/04/28/#upstart.txt

JanCI think shan3 wants to boot slower  ;)00:40
CaesarIs there a way to validate an upstart job for anatomical correctness but otherwise not do anything with it?01:48
shan3In Ubuntu 10.04, is it possible that a bash script I run from an Upstart job can exit with errors because it is not compliant with dash?03:28
Keybukyour question doesn't make sense03:30
Keybukscripts run from an Upstart job (within the script...end script block) are run with /bin/sh, which on Ubuntu is dash03:32
Keybukthis means you *cannot* include so-called bashisms in them03:32
Keybukthey are not bash scripts03:32
Keybukif you instead call out to an executable bash script using exec, then it will be run with whatever the #! line is at the top03:32
Keybuk(ie. set that to #!/bin/bash *not* #!/bin/sh)03:33
shan3Keybuk: Thanks for the reply... but I cannot figure out why my bash script will not run from the Upstart job but works perfectly when run from terminal03:34
Keybukcan you pastebin the upstart job?03:34
shan3sure...  1 sec03:34
shan3http://pastebin.com/JVLiFwaZ03:36
Keybuk/usr/sbin/mfmrootdaemon being the bash script?03:36
shan3yes03:36
Keybukwell, it could be any number of issues03:36
Keybukfor example, is /usr even mounted/03:37
Keybukit's stopped when rcS is started, which might be quite soon after udev is started03:37
Keybukit might need mounted filesystems like /proc, which aren't available when udev is started03:37
Keybukhave you tried adding set +x to your bash script, and "console output" to the job, to see what it fails on?03:37
shan3but it should work if I run 'sudo start myjob' , right?03:38
Keybukif it works when you do that, but doesn't work otherwise, then it would be a dep issue03:38
Keybukif it doesn't work when you "sudo start", then I'd do the set +x/console output trick to see how it fails03:38
shan3no it doesn't work when I use start... I'll try set +x now03:39
Keybukthe set =x goes at the top of mfmrootdaemon obviously03:39
Keybukset +x I mean03:39
Keybukit makes bash print each line before executing it03:39
Keybukso you'll see where it breaks03:39
shan3Keybuk: do you mean set -x ? coz that print the commands and arguments... either way, I've added 'console output' ans set +x and also set -x... but still no output04:05
Keybukerr yes04:05
Keybukmaybe -x04:05
shan3-x enables and +x disables... 04:07
shan3start outputs 'myjob start/running' but there is no sign on it in ps04:08
shan3*of it04:08
=== Ng_ is now known as Ng
=== ion_ is now known as ion
=== h\h is now known as haraldh
Keybuknotting: around?16:47
nottingsure, why not16:47
KeybukI hear RedHat have written their own init replacement, and will be using that instead of Upstart16:48
Keybukcare to comment?16:48
notting(give me a few minutes)16:52
Keybuk:-)16:52
nottingsomeone who is a RH employee is writing something in their spare time. i have not looked at what they've written so far16:56
nottingthere are no current plans to either ship it, or not ship it16:57
Keybukthey claim RH is paying them to write it16:59
Keybukand that it's a foregone shoe into Fedora16:59
nottingi'm not exactly comfortable attempting to talk about a third party in their absence. i'd prefer to let them speak for themselves.17:09
nottingbut nothing has been built for fedora, or proposed for fedora, or discussed in fedora in any way17:09
mclasenI'm sure it will be, in time17:10
Keybuknotting: ok ;)17:16
Keybukso you don't know much about it17:16
nottingi know of it/the basics about it17:19
ioniNIHt17:28
ionNothing wrong with NIH if you have a good reason for it. What’s the reason for the RH init?17:29
nottingno linux subsystem is complete unless there's a implementation that starts with 'g' and an implementation that starts with 'k'. init has neither.17:34
Keybukit's all about the 'u' now17:46
* notting waits for canonical to come out with their ibis mascot, then17:55
sadmacKeybuk: I heard this rumor too. My reaction was the same as yours.18:40
=== aaron01 is now known as aaron01_lunch
Keybuksadmac: I had a reaction? :p21:33
sadmacKeybuk: yes. I asked notting :)21:34
Keybukwhen I first heard about it (six months ago?) I didn't expect it to actually get finished, so yeah, I guess I'm surprised about that ;p21:34
Keybukah, that it's basically launchd?21:34
sadmacKeybuk: I know nothing about it21:34
sadmacKeybuk: where'd you hear it from?21:35
Keybukvarious people leaking things to me, until finally Lennart came clean and sent me the draft announcement today21:40
sadmacKeybuk: its lennart then?21:40
Keybukwho else? :p21:40
sadmacKeybuk: I actually did think that earlier.21:40
* sadmac wonders if he hasn't done enough damage21:41
Keybukdamage?  he did a great job on Avahi, finally killing that evil mdns responder crap from Apple21:42
Keybukand PulseAudio killed esd21:42
sadmacKeybuk: Pulseaudio killed puppies too21:42
KeybukI never said that ;)  you said that ;)21:42
sadmacKeybuk: avahi... no opinion, I'll give you that one21:42
sadmacKeybuk: Whenever Ubuntu gets that magical patch that makes Pulse not suck upstream then I'll be ok (not your fault in this case. He won't take the damn thing.)21:43
Keybukis that the "apt-get remove pulseaudio" patch?21:45
sadmacKeybuk: also, do you look at it as killing esd or cementing alsa?21:45
JanCpulseaudio works fine22:06
JanCexcept for 1 usage scenario maybe (a system daemon like mpd needing to play sound, but even that's solvable)22:10
Keybukyeah, it's always worked ok for me22:11
sadmacright now this box will periodically produce static instead of sound unless I kill pulse.22:13
sadmacand that's for straight alsa apps22:13
sadmacif it goes through gstreamer it hardlocks22:13
sadmacbusy-looping inside libpulse22:13
JanCyour gstreamer uses pulse I hope?22:13
sadmacJanC: yes. It seems to use it in such a way that it hits the pulseaudio glitch harder, or hits a different glitch.22:14
JanCanyway, never seen that happen recently on Ubuntu (for at least 1 year)22:14
JanCmay depend on the hardware though22:15
sadmacintel22:15
sadmacthis box is on its second motherboard too. same problems as the last chipset on this one.22:15
JanCI think you mean HDA, intel doesn't make audio chips (anymore?)22:16
sadmacyeah. that's what I mean22:16
=== rberger_ is now known as rberger

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