O novo PID principal não pertence ao serviço e o arquivo PID não é de propriedade do root

1

Ao executar o vncserver (tightvncserver) no Xubuntu 18.04 como um serviço, recebo este erro

New main PID 2095 does not belong to service, and PID file is not owned by root. Refusing.

Meu arquivo de serviço é semelhante a este

/etc/systemd/system/[email protected] 

[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target

[Service]
Type=forking
User=user
PAMName=login
PIDFile=/home/user/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%i
ExecStop=/usr/bin/vncserver -kill :%i

[Install]
WantedBy=multi-user.target

De acordo com este relatório de erros, tem algo a ver com esta alteração no systemd.

Alguma sugestão sobre atualizar meu arquivo de serviço para que funcione novamente com o systemd?

    
por arzach84 07.06.2018 / 13:14

0 respostas