I've managed to set up LXDE to start only when I connect over VNC.
But I'm putting together a small web server that has low CPU and RAM.
LXDE is really cool because it requires only a little of that low amount. But it doesn't need to be running 24/7, specially when not connected by VNC.
Is it possible to kill LXDE when I disconnect from VNC? If so, how can I do that?
My system is simply a Debian 8.2 x64 with TightVNC installed.
I was suggested to use a cron job to check if the process is running, but I have no idea how to kill LXDE and how to check if VNC is running.