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?