aboutsummaryrefslogtreecommitdiffstats
path: root/user
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-06-27 14:28:59 +0200
committerDavid Runge <dave@sleepmap.de>2015-06-27 14:28:59 +0200
commitd3b1ce4899c71d0ff41313a7bce092b39f0f3168 (patch)
tree3aa7ec304c1a473c80e0fe7632eddbd1d33e76ee /user
parent31f2e1b25b593b3c935518151774d23358f3a20f (diff)
downloaduenv-d3b1ce4899c71d0ff41313a7bce092b39f0f3168.tar.gz
uenv-d3b1ce4899c71d0ff41313a7bce092b39f0f3168.tar.bz2
uenv-d3b1ce4899c71d0ff41313a7bce092b39f0f3168.tar.xz
uenv-d3b1ce4899c71d0ff41313a7bce092b39f0f3168.zip
user/monitoring.service: Adding the creation of TMUX_TMPDIR if not created yet.
Diffstat (limited to 'user')
-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"