15 lines
249 B
SYSTEMD
15 lines
249 B
SYSTEMD
|
[Unit]
|
||
|
Description=Start tmux in detached session
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
RemainAfterExit=yes
|
||
|
KillMode=none
|
||
|
User=%I
|
||
|
WorkingDirectory=%h
|
||
|
ExecStart=/usr/bin/tmux -s %h -d
|
||
|
ExecStop=/usr/bin/tmux kill-session -t %h
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|