On Fri, 05 Oct 2018 07:42:16 +0200 Francis.Montagnac(a)inria.fr wrote:
Can you try to set Type to simple and thus get rid of the pid stuff.
So try:
[Service]
Type=simple
WorkingDirectory=/home/rgm
User=rgm
Group=rgm
PAMName=login
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i >
/dev/null 2>&1 || :'
...
This will not work since vncserver go by default in the
background. Fortunately it provides a -fg option.
Replace thus:
ExecStart=/usr/bin/vncserver -autokill %i
by:
ExecStart=/usr/bin/vncserver -fg %i
-autokill is useless with -fg
--
francis