Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

daemonize (feature) #10

Open
nbecker opened this Issue May 6, 2011 · 1 comment

Comments

Projects
None yet
2 participants

nbecker commented May 6, 2011

One thing often happens. I start some long-running process - maybe in emacs shell. Now I want to go home, but unfortunately, I did not use emacs --daemon. Too late now.

I can use reptyr (start new emacs --daemon + emacsclient, shell, reptry). But what I'd like is to daemonize the process. That is, redirect the stdout/stderr to a logfile (with configurable logfile behaviour), and then daemonize the process.

Seems like reptyr could be a useful tool for this. Any thoughts? Maybe make a daemonize.py python script, and invoke it from reptry from it after deamonize redirects it's stdout/stderr?

Owner

nelhage commented May 9, 2011

Yeah, this seems like something reptyr could do. It's an easier problem than the
one I solve, in that there's no need to worry about the termios wankery, but
there's no reason not to support it.

I don't have a lot of time for reptyr hacking right at the moment, but I'll add
it to my TODO list.

  • Nelson

On Fri, May 06, 2011 at 10:03:51AM -0700, nbecker wrote:

One thing often happens. I start some long-running process - maybe in emacs
shell. Now I want to go home, but unfortunately, I did not use emacs
--daemon. Too late now.

I can use reptyr (start new emacs --daemon + emacsclient, shell, reptry). But
what I'd like is to daemonize the process. That is, redirect the
stdout/stderr to a logfile (with configurable logfile behaviour), and then
daemonize the process.

Seems like reptyr could be a useful tool for this. Any thoughts? Maybe make
a daemonize.py python script, and invoke it from reptry from it after
deamonize redirects it's stdout/stderr?

Reply to this email directly or view it on GitHub:
#10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment