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