[systemd-devel] vncserver at .service

David Strauss david at davidstrauss.net
Wed Jan 23 10:47:03 PST 2013


On Wed, Jan 23, 2013 at 9:14 AM, Colin Guthrie <gmane at colin.guthr.ie> wrote:
> ExecStartPre=-/usr/bin/vncserver -kill %i
> ExecStart=/usr/bin/vncserver %i -geometry 1024x600 -depth 24 -fp
> /usr/share/X11/fonts/misc
> ExecStop=/usr/bin/vncserver -kill %i

The ExecStartPre should be unnecessary if this VNC server only runs as
a systemd service. systemd will kill (gently or forcibly) any
remaining processes left after ExecStop.

It is also good to explicitly set the PID file path, which should be
something like "$HOME/.vnc/host:display#.pid" based on the man page.

--
David Strauss
   | david at davidstrauss.net
   | +1 512 577 5827 [mobile]


More information about the systemd-devel mailing list