Bbjimmy wrote a script (“launchvnc”) for us that worked great for years, but we’ve recently updated the Haiku version. On our old system, the launchvnc script restarted the vncserver every 2 hours. We were having an issue where vncserver would quit working, even though it was still running. The script fixed that problem and worked well. On that old system, the script ran from /boot/home/config/bin, but this later version of Haiku won’t allow write-permissions to that folder. I tried a workaround by putting the script and the vncserver binary in a writable folder (/boot/home/vnc), but it won’t re-start after the 2-hour timeout. Any tips on how to get this to work? Here’s the script I have on the system now. It does start vncserver when running running the script, but won’t re-start vncserver. Thanks for any help.
echo $PID > /boot/home/config/settings/vnc.pid
for line in $(cat /boot/home/config/settings/vnc.pid)