aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--user/monitoring.service1
1 files changed, 1 insertions, 0 deletions
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"