From 624c19b1c692363ba9845bcbb7fd45fc783d63f4 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 26 Jul 2020 13:22:19 +0200 Subject: Add local tmux systemd user service .config/systemd/user/tmux.service: Add a local systemd user service for tmux. --- .config/systemd/user/tmux.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .config/systemd/user/tmux.service (limited to '.config/systemd') diff --git a/.config/systemd/user/tmux.service b/.config/systemd/user/tmux.service new file mode 100644 index 0000000..084efc0 --- /dev/null +++ b/.config/systemd/user/tmux.service @@ -0,0 +1,13 @@ +[Unit] +Description=Start tmux in detached session +After=local-fs.target +ConditionFileIsExecutable=/usr/bin/tmux + +[Service] +Type=forking +Environment=TMUX_TMPDIR=%t +ExecStart=/usr/bin/tmux new-session -s user -d +ExecStop=/usr/bin/tmux kill-session -t user + +[Install] +WantedBy=default.target -- cgit v1.2.3-70-g09d2 From e23b20cb12ae64bed5af0b5f8262bb1abf5f9e23 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 26 Jul 2020 14:47:13 +0200 Subject: Add systemd user service for ssh-agent .config/systemd/user/ssh-agent.service: Add a simple systemd user service for ssh-agent --- .config/systemd/user/ssh-agent.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .config/systemd/user/ssh-agent.service (limited to '.config/systemd') diff --git a/.config/systemd/user/ssh-agent.service b/.config/systemd/user/ssh-agent.service new file mode 100644 index 0000000..ab9d0d0 --- /dev/null +++ b/.config/systemd/user/ssh-agent.service @@ -0,0 +1,13 @@ +# /usr/lib/systemd/user/ssh-agent.service +[Unit] +Description=SSH key agent +After=local-fs.target +ConditionFileIsExecutable=/usr/bin/ssh-agent + +[Service] +Type=forking +Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket +ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK + +[Install] +WantedBy=default.target -- cgit v1.2.3-70-g09d2