Avoid PIDFile problems in systemd unit file (bug #983232).

Resolves: rhbz#983232
This commit is contained in:
Tim Waugh 2013-07-24 17:16:03 +01:00
parent 544fe4cd65
commit 58cbc6524c
2 changed files with 3 additions and 3 deletions

View File

@ -340,6 +340,7 @@ fi
%changelog
* Wed Jul 24 2013 Tim Waugh <twaugh@redhat.com> 1.3.0-3
- Avoid PIDFile problems in systemd unit file (bug #983232).
- libvnc.so: don't use unexported key_is_down function.
- Don't use shebang in vncserver script.

View File

@ -34,11 +34,10 @@ Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
Type=simple
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i"
ExecStop=/sbin/runuser -l <USER> -c "/usr/bin/vncserver -kill %i"
ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver -fg %i"
[Install]
WantedBy=multi-user.target