Quitting OSXvnc from the command line

What would be the best way to quit OSXvnc when I started it from the command line? I see that I have several servers running on one of my machines as I was testing out some things and so I would like a command to kill all OSXvnc services that I have started from the command line.

I had assumed that if I terminated my session with control-c that it would kill the server but it appears not.

And, by the way, someone mentioned a “keep alive” script. What does that do? I don’t see anything in the faq or the man pages

You should be able to kill OSXvnc just like any other unix process with the kill command: kill -9 pid

Consult the “kill” man page for more info.