[07:54] <xnox> internetpanda: init-checkconf is your friend. But it looks like you should deltet line 98 and line 14, there is no need to wrap respawn/exec stanzas in "script... end script".
[07:54] <xnox> internetpanda: also see cookbook.
[20:13] <arthurdent> hey i'm trying to start a service with upstart (mdm) and the only output I get is "mdm stop/waiting"
[20:14] <arthurdent> mdm works fine if i just run it, but i can't figure out how to get more debug output from service or initctl or start
[20:42] <arthurdent> okay i figured out the problem
[20:42] <arthurdent> /etc/profile contained a line in it "source" but apparently upstart chokes if it's not "."
[20:42] <arthurdent> why is this?
[20:45] <arthurdent> obviously it's using sh instead of bash to source profile, but that seems dumb
[20:46] <MindQuad> your statement makes no sense
[20:46] <MindQuad> if it was something in /etc/profile it would fail on every upstart job
[20:46] <arthurdent> MindQuad: well it didn;t
[20:46] <MindQuad> arthurdent: then it's doubtful it's something in /etc/profile
[20:46] <MindQuad> a symptom as opposed to a cause
[20:49] <arthurdent> MindQuad: well
[20:49] <arthurdent> cat /var/log/upstart/mdm.log => /proc/self/fd/9: 31: /etc/profile source: not found
[20:49] <MindQuad> so ?
[20:49] <arthurdent> changing it to . fixed it, maybe a bunch of other stuff wasn't starting up either; it's not so obvious when your display manager isn't running
[20:50] <MindQuad> that's a specific upstart script - not upstart
[20:50] <MindQuad> thats the mdm script
[20:50] <arthurdent> it doesn't call sh anywhere in the script, it just uses . to source /etc/profile
[20:51] <MindQuad> s o?
[20:51] <arthurdent> so . executes commands in the current shell
[20:51] <MindQuad> that's a problem with a specific script, not upstart
[20:51] <arthurdent> how could only the mdm script be running in sh instead of bash?
[20:51] <MindQuad> who said anything about running sh ?
[20:51] <arthurdent> why else would source not work?
[20:52] <MindQuad> tht's what you'd have to look at
[20:52] <MindQuad> but it's not an upstart problem
[20:54] <arthurdent> why are all of these other upstart scripts written for sh?
[20:54] <MindQuad> what are you talking about "sh"
[20:54] <MindQuad> why are you making that assumption
[20:54] <MindQuad> ls -la /bin/sh 
[20:54] <MindQuad> on your system
[20:54] <arthurdent> /bin/sh -> dash
[20:54] <MindQuad> right
[20:54] <MindQuad> so it doesn't matter then, it's pointing at dash anyway
[20:55] <MindQuad> so why you are referencing bourne shell I have no idea
[20:55] <arthurdent> whatever then, so does upstart use dash?
[20:55] <MindQuad> if that's what the script is written with or the default shell of your init user
[20:56] <MindQuad> so again, this is a basic shell script failing for one service, which looking at the fact that it's mdm - suggests it's something specific to mint
[20:56] <MindQuad> so it's not an upstart problem, rather someone has made a scripting error with that script
[20:56] <MindQuad> so I'd talk to the mint maintainer and ask them to fix it
[20:58] <arthurdent> is dash not the default shell on ubuntu?
[20:58] <MindQuad> I think so yes
[20:58] <MindQuad> not sure why that matters though ?
[20:58] <MindQuad> or am I wrong that mdm is the mint service
[20:58] <MindQuad> I thought that was a mint supplied package, or am I wrong ?
[20:59] <arthurdent> no, you're correct
[20:59] <MindQuad> ok, so ubuntu's default shell doesn't matter then
[20:59] <MindQuad> and has no relecence
[21:00] <arthurdent> I was just wondering if it was a problem that would also occur on ubuntu if someone wrote a similar script.
[21:00] <MindQuad> if someone writes a bad shell script it will fail on eny distribution
[21:00] <MindQuad> so "yes" 
[21:01] <MindQuad> but also the distribution has no importnce here, neither does upstart as someone has just written a bad shell script with a mistake
[21:01] <arthurdent> is the mistake trying to source /etc/profile from inside the script?
[21:01] <MindQuad> the mistake is someone has written a shell script with an invalid shell command for the shell you are using
[21:02] <arthurdent> no, i put that in /etc/profile. i had no idea the mdm upstart script was going to try to source it with dash
[21:02] <MindQuad> ok, so the problem is you have made a mistake, putting in an invalid command
[21:02] <MindQuad> remove the command and you're done
[21:02] <arthurdent> MindQuad: yeah i said that 15 minutes ago and you told me i was wrong
[21:03] <MindQuad> no, I thought you where saying the "source" command was in the init script
[21:03] <MindQuad> I miss-understood what you where saying
[21:04] <arthurdent> you're right, i should have said the upstart script chokes
[21:04] <arthurdent> and not assume it was upstart itself
[21:05] <arthurdent> was upstart around when gdm was still used
[21:05] <MindQuad> yes
[21:05] <MindQuad> well, I'm not sure when mint moved away from that atually, but I'd assume so 
[21:06] <arthurdent> i meant on ubuntu, but yeah; i wonder how the script was written for gdm and if it had similar limitations
[21:06] <MindQuad> limitations ?
[21:07] <MindQuad> the limitation is you've put in an invalid command
[21:07] <MindQuad> how is that a limitation, it's just a scripting error
[21:07] <MindQuad> either way, this isn't anything to do with upstart, so it's not really for this channel,. 
[21:08] <arthurdent> alright, well thanks for your support. i guess it's a scripting error because the distro i use sources stuff with bash and I didn't realise some distros still used dash
[21:09] <MindQuad> mint uses dash
[21:09] <MindQuad> so that's just poor maintenance / packaging
[21:09] <arthurdent> mint isn't my distro, i just have to support a bunch of computers that run it
[21:09] <MindQuad> oh, sorry, I thought it was mint because you where running mdm 
[21:09] <MindQuad> why are you running mdm if it's not mint 
[21:09] <MindQuad> actually - that's out of scope for this channel
[21:09] <MindQuad> sorry
[21:10] <arthurdent> alright, i'm gonna dip, but the answer to your question is that i'm maintaining mdm on about 150+ mint machines, but I don't use mint on my personal machine.
[21:10] <arthurdent> thanks again