Properly initialize tigervnc when started as systemd service
This commit is contained in:
parent
f14ea3274b
commit
d9f6bc6ba8
@ -1,6 +1,6 @@
|
|||||||
Name: tigervnc
|
Name: tigervnc
|
||||||
Version: 1.8.0
|
Version: 1.8.0
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: A TigerVNC remote display system
|
Summary: A TigerVNC remote display system
|
||||||
|
|
||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
@ -331,6 +331,9 @@ fi
|
|||||||
%{_datadir}/icons/hicolor/*/apps/*
|
%{_datadir}/icons/hicolor/*/apps/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 15 2017 Jan Grulich <jgrulich@redhat.com> - 1.8.0-5
|
||||||
|
- Properly initialize tigervnc when started as systemd service
|
||||||
|
|
||||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-4
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
# 1. Copy this file to /etc/systemd/system/vncserver@.service
|
# 1. Copy this file to /etc/systemd/system/vncserver@.service
|
||||||
# 2. Replace <USER> with the actual user name and edit vncserver
|
# 2. Replace <USER> with the actual user name and edit vncserver
|
||||||
# parameters appropriately
|
# parameters appropriately
|
||||||
# ("User=<USER>" and "/home/<USER>/.vnc/%H%i.pid")
|
# (ExecStart=/usr/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i"
|
||||||
|
# PIDFile=/home/<USER>/.vnc/%H%i.pid)
|
||||||
# 3. Run `systemctl daemon-reload`
|
# 3. Run `systemctl daemon-reload`
|
||||||
# 4. Run `systemctl enable vncserver@:<display>.service`
|
# 4. Run `systemctl enable vncserver@:<display>.service`
|
||||||
#
|
#
|
||||||
@ -36,13 +37,12 @@ After=syslog.target network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
User=<USER>
|
|
||||||
|
|
||||||
# Clean any existing files in /tmp/.X11-unix environment
|
# Clean any existing files in /tmp/.X11-unix environment
|
||||||
ExecStartPre=-/usr/bin/vncserver -kill %i
|
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
|
||||||
ExecStart=/usr/bin/vncserver %i
|
ExecStart=/usr/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i"
|
||||||
PIDFile=/home/<USER>/.vnc/%H%i.pid
|
PIDFile=/home/<USER>/.vnc/%H%i.pid
|
||||||
ExecStop=-/usr/bin/vncserver -kill %i
|
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user