UnwashedMeme | does 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 |
---|---|---|
mbiebl | UnwashedMeme: If the program doesn't fork, it should be no problem | 15:46 |
UnwashedMeme | mbiebl: 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 |
mbiebl | logd is broken, bu "console output" | 15:50 |
mbiebl | should work, when you are on the console | 15:50 |
UnwashedMeme | what console should that go to? the one from which i do initctl start? | 15:51 |
mbiebl | just try it ;-) | 15:53 |
UnwashedMeme | yeah | 15:53 |
UnwashedMeme | and i don't get anything | 15:53 |
UnwashedMeme | well, i get initctl's output | 15:54 |
UnwashedMeme | but nothing beyond its reporting | 15:54 |
mbiebl | are you starting it from a tty or a xterm? | 15:56 |
UnwashedMeme | over ssh... | 15:56 |
UnwashedMeme | so a xterm i suppose? | 15:57 |
mbiebl | yeah, that doesn't work | 15:57 |
UnwashedMeme | from an actual console might provide better results? | 15:57 |
mbiebl | yes | 15:58 |
UnwashedMeme | unfortunately not, the same output as from ssh. | 15:59 |
mbiebl | Then your process does not produce any output | 16:01 |
mbiebl | could you pastebin your job file | 16:01 |
UnwashedMeme | yeah, give me one minute | 16:02 |
UnwashedMeme | mbiebl: http://pastebin.com/d58a3983 | 16:06 |
UnwashedMeme | I've been trying various combinations of daemon (which i take is incorrect because this doesn't fork), service, and console | 16:07 |
UnwashedMeme | annotated with a version of detachtty that does http://pastebin.com/d3707d019 | 16:09 |
mbiebl | UnwashedMeme: does it work if you specify the path to the binary directly in exec | 16:12 |
UnwashedMeme | i'll try | 16:13 |
mbiebl | instead of building it via env variables | 16:13 |
UnwashedMeme | same results | 16:14 |
mbiebl | maybe there is a problem with the LD_LIBRARY_PATH | 16:18 |
mbiebl | you could try to put all this inside a script ... end script section | 16:19 |
mbiebl | and if you want to monitor the daemon, use exec, to replace the current shell and respawn instead of service | 16:19 |
UnwashedMeme | mbiebl: 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!