[enhancement] Make autosubmit run detach by default, avoid needing nohup/nohup.log
Hello @dbeltran and @mcastril ,
At the moment users launch Autosubmit with autosubmit run
, which blocks the terminal. The recommended way to launch it to the background is with nohup
. It's in our documentation, and that's how most users launch it.
Some issues with this approach are
a) only the user launching the command has access to the nohup.log (when a robot account is used, AS developers not using the account are "locked out" and cannot see that file, regardless of umask/acl/linux permissions)
b) when the user forgets to nohup
, they need to kill the command and launch it again (even if it might be doable to send it to the background, it is probably safer to avoid it)
I suggest we copy the behavior of Cylc here, and autosubmit run
automatically sends the command to the background, and the logs to a file in the AS log files. That should simplify operation a bit, and allow users to run it without having to use nohup
.
Furthermore, we can also copy the --no-detach
flag so that autosubmit run --no-detach $expid
keeps the terminal blocked, if the user so desires.