diff options
author | tdro <tdro@users.noreply.github.com> | 2020-08-01 02:45:05 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-08-01 02:51:25 -0400 |
commit | 778948ddce681c7326ae6948029784ca40774c53 (patch) | |
tree | a84016f8be8c73a90384bbd6c7d2c5c0c02c61c0 /.config/systemd | |
parent | 218d395700e23c8197274314933f399c88607517 (diff) | |
download | dotfiles-778948ddce681c7326ae6948029784ca40774c53.tar.gz dotfiles-778948ddce681c7326ae6948029784ca40774c53.tar.bz2 dotfiles-778948ddce681c7326ae6948029784ca40774c53.zip |
.config/systemd/user/x11vnc: prevent killing
Something (most likely systemd) is randomly sigterming x11vnc
Diffstat (limited to '.config/systemd')
-rw-r--r-- | .config/systemd/user/x11vnc.service | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.config/systemd/user/x11vnc.service b/.config/systemd/user/x11vnc.service index 71f6ae7..5d92550 100644 --- a/.config/systemd/user/x11vnc.service +++ b/.config/systemd/user/x11vnc.service @@ -5,9 +5,11 @@ StartLimitIntervalSec=0 [Service] Type=simple +ExecStartPre=/bin/sh -c "vnc=$(pidof x11vnc) && { [ $(echo $vnc | wc -w) = 1 ]; } || { kill $${vnc% *} || true; }" ExecStart=/usr/bin/env x11vnc -usepw -nowf -norepeat -forever -noxrecord -auth $XAUTHORITY Restart=always RestartSec=1s +KillMode=none SyslogIdentifier=x11vnc [Install] |