[21:21] I've been trying to turn a process not really built to be a deamon (and to which I have no access to source) into one, but wihtout success [21:22] Sounds like fun. [21:22] At first, I noticed it didn't like to be untied from stdin/stdout (could not background it without stopping) [21:22] So now I start it through screen [21:23] it works when I do it simply from the command line [21:23] but with an exec from an upstart job, it doesn't [21:23] ion: yeah... it kinda is, but it's just so much more fun when it works :) [21:25] So I was wondering what was different between me calling "screen -d -m bash -c 'my_command'" from the shell and from an exec stanza === hallyn_ is now known as hallyn [22:15] for some reason, it seems like a child creation is failing when my program is launched from upstart :( [23:05] what could cause a program to behave differently depending on wether it's called from command line or from upstart? [23:06] given the same command (screen -d -m sh -c 'blackboxcommand') [23:27] elik: commands run from upstart aren't connected to a tty [23:27] Keybuk: doesn't screen take care of that^ [23:28] elik: I always thought screen itself needed a tty [23:28] also commands from upstart are run in a clean environment [23:28] e.g. $HOME is not set [23:29] Keybuk: I do set the needed variables through env stanzas [23:30] Keybuk: as far as tty goes, I do start services like that using init.d [23:30] screen -d -m detaches and creates a daemon [23:30] detaches from what? [23:34] Keybuk: screen exists so you can detech the terminal from under it [23:36] but in summary, there are plenty of things that can cause a command run from upstart to behave differently than one run from a tty [23:37] Btw, tmux start can be done without a tty. [23:39] ion: without going into details, aren't tmux and screen somewhat similar? [23:39] Keybuk: right :( [23:39] Yes, but i’m under the impression the code quality of tmux is generally better. [23:40] Also, tmux doesn’t do a a bunch unrelated things, it only tries to do one thing well. [23:40] +of