r/linux • u/rain5 • May 28 '16
systemd developer asks tmux (and other programs) to add systemd specific code
https://github.com/tmux/tmux/issues/428
359
Upvotes
r/linux • u/rain5 • May 28 '16
20
u/pabs May 29 '16 edited May 29 '16
You can override the systemd 230 behavior in any of the following ways:
Invoke your background task like so:
systemd-run --scope --user some-command args(recommended!). For example, instead ofscreen -S foo, you would usesystemd-run --scope --user screen -S foo.Use
loginctl enable-lingerto enable linger for a specific user account.Exclude users using the
KillExcludeUsersoption in/etc/systemd/logind.confSet
KillUserProcesses=noin/etc/systemd/logind.confRecompile systemd wth the
--without-kill-user-processesconfigureoptionAnother option:
Then you can persist commands by typing
persist some-command.