Restart System Server from remote Terminal?

Sometimes Vine System Server doesn’t respond to remote connection requests until it is restarted.

When I have physical access to my machine, I can Restart System Server through the GUI. When I am away from my machine, however, that is not an option. If I can SSH in via terminal, how can I perform the Restart System Server function via the command line?

Using current versions of Vine Server and Viewer on Snow Leopard. TIA!

If you just kill the process, the launchd process will restart it. It’s actually pretty hard to kill it off.

Yep, restarts within seconds. Thanks!

$ ps -x [view PID of OSXvnc-server]
$ kill -9 [PID]