/srv/irclogs.ubuntu.com/2009/03/31/#upstart.txt

UnwashedMemedoes 0.3.9 have the ability to start a standard program as a daemon (do the terminal detaching and whatnot)? I've not been able to get that to work...15:43
mbieblUnwashedMeme: If the program doesn't fork, it should be no problem15:46
UnwashedMemembiebl: it doesn't fork, but all i ever get is that it exited with error.  Can I have the console logged so i can figure out why?15:48
mbiebllogd is broken, bu "console output"15:50
mbieblshould work, when you are on the console15:50
UnwashedMemewhat console should that go to? the one from which i do initctl start?15:51
mbiebljust try it ;-)15:53
UnwashedMemeyeah15:53
UnwashedMemeand i don't get anything15:53
UnwashedMemewell, i get initctl's output15:54
UnwashedMemebut nothing beyond its reporting15:54
mbieblare you starting it from a tty or a xterm?15:56
UnwashedMemeover ssh...15:56
UnwashedMemeso a xterm i suppose?15:57
mbieblyeah, that doesn't work15:57
UnwashedMemefrom an actual console might provide better results?15:57
mbieblyes15:58
UnwashedMemeunfortunately not, the same output as from ssh.15:59
mbieblThen your process does not produce any output16:01
mbieblcould you pastebin your job file16:01
UnwashedMemeyeah, give me one minute16:02
UnwashedMemembiebl:  http://pastebin.com/d58a398316:06
UnwashedMemeI've been trying various combinations of daemon (which i take is incorrect because this doesn't fork), service, and console16:07
UnwashedMemeannotated with a version of detachtty that does http://pastebin.com/d3707d01916:09
mbieblUnwashedMeme: does it work if you specify the path to the binary directly in exec16:12
UnwashedMemei'll try16:13
mbieblinstead of building it via env variables16:13
UnwashedMemesame results16:14
mbieblmaybe there is a problem with the LD_LIBRARY_PATH16:18
mbieblyou could try to put all this inside a script ... end script section16:19
mbiebland if you want to monitor the daemon, use exec, to replace the current shell and respawn instead of service16:19
UnwashedMemembiebl: putting everything in the script (vars and start) didn't seem to change anything.  I'm going to mess with it more later, thanks a lot for the help.16:26

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