From d3b1ce4899c71d0ff41313a7bce092b39f0f3168 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 27 Jun 2015 14:28:59 +0200 Subject: user/monitoring.service: Adding the creation of TMUX_TMPDIR if not created yet. --- user/monitoring.service | 1 + 1 file changed, 1 insertion(+) (limited to 'user') diff --git a/user/monitoring.service b/user/monitoring.service index 88da36b..fb9fa1b 100644 --- a/user/monitoring.service +++ b/user/monitoring.service @@ -10,6 +10,7 @@ ConditionFileIsExecutable=/usr/bin/loginctl Type=forking KillMode=control-group Environment=TMUX_TMPDIR=/run/user/%U/tmux +ExecStartPre=/usr/bin/mkdir -p $TMUX_TMPDIR ExecStart=/usr/bin/tmux -L mon new-session -d -s mon -n htop htop ExecStartPost=/usr/bin/tmux -L mon new-window -n glances glances ExecStartPost=/usr/bin/tmux -L mon new-window -n loginctl "watch -n1 loginctl user-status %U" -- cgit v1.2.3-70-g09d2