summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-02-27 20:18:18 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-02-27 20:18:18 -0500
commitf1d71e91940e25bb4df561324956831122f01b9e (patch)
treef1b48d38a976f5fc80f0b8c2726813eea5a829bb
parent0c12bbc15020ac7a3208a6afb2006cd9c6b3830e (diff)
systemd: gracefully kill vncserver
-rw-r--r--.config/systemd/user/vncserver@.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/.config/systemd/user/vncserver@.service b/.config/systemd/user/vncserver@.service
index 2b5b453..2cabf4f 100644
--- a/.config/systemd/user/vncserver@.service
+++ b/.config/systemd/user/vncserver@.service
@@ -7,6 +7,7 @@ Type=simple
Restart=always
ExecStart=/usr/bin/env vncserver -fg %I
+ExecStop=/usr/bin/env vncserver -kill %I
ExecStopPost=/bin/rm /tmp/.X%I-lock /tmp/.X11-unix/X%I
[Install]