vncserver service will not stay on
Hello
I am trying to run vncserver service on my CentOS7 VM. I have already done the tigervnc install and configured the file for it: Unit] Description=Remote desktop service (VNC) After=syslog.target network.target [Service] #Type=simple User=tagroot #Group=tagroot #WorkingDirectory=/home/tagroot Type=forking # Clean any existing files in /tmp/.X11-unix environment PIDFile=/home/tagroot/.vnc/%H%i.pid ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' ExecStart=/sbin/runuser -l tagroot -c "/usr/sbin/vncserver %i" #PIDFile=/home/tagroot/.vnc/%H%i.pid ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' [Install] WantedBy=multi-user.target I have noticed that the failure always occurs after the ExecStart=/sbin/runuser -l tagroot -c "/usr/sbin/vncserver %1" line or the line ExecStart=/usr/bin/vncserver_wrapper %1. Is there something in the vncserver_wrapper file that needs to be config'd? Yes I have commented lines in it, but in trying to make it work, I have had to modify the file. I then run sudo systemctl daemon-reload, then sudo systemctl start vncserver@:1.service and finally sudo systemctl status vncserver@:1.service, and I get the following: ● vncserver@:1.service - Remote desktop service (VNC) Loaded: loaded (/etc/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2023-04-06 09:05:23 EDT; 18s ago Process: 18572 ExecStart=/sbin/runuser -l tagroot -c /usr/sbin/vncserver %i (code=exited, status=1/FAILURE) Process: 18557 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS) Main PID: 18572 (code=exited, status=1/FAILURE) Clearly something in Process 18572 is causing this. Is there something I can do? |
All times are GMT -5. The time now is 03:39 PM. |