Ok, so tmux new -d -s mySession is the same as tmux new -d -s mySession
/bin/bash. And the bash command is running, but in a wait state.  Whereas,
the example of ll executed and exit, but because it was not in a shell,
didn't have a running command to fall back to.

The reason I'm asking is because I want to launch a command in a shared
session on system start up so that it's running in the background, "owned"
by one user, but accessible to others. I'm using systemd, and I have a
service setup, but it's not working.  Do you know of any reason
ExecStart=/usr/bin/tmux
new -d -s mySession /bin/bash would not persist?  (I know this isn't multi
user, I'm just looking to get a working example)

On Mon, Sep 7, 2020 at 9:09 AM Nicholas Marriott <
[email protected]> wrote:

> if you don't give a command, tmux will start a shell
>
> creating a session with -d is no different from creating it without except
> it does not attach
>

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/CAHxWh4YJPzAj%3D9X_pxffnV-RWaWOPQOmSgmUJ8yUKsZLJTzGtQ%40mail.gmail.com.

Reply via email to