Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Starts TigerVNC if it's not started.
- export PATH=$PATH:/bin:/usr/bin:/sbin:/usr/sbin:
- IS_RUNNING=`ps auxw| grep Xvnc | wc -l`
- if [ $IS_RUNNING -ge 1 ]; then
- echo "INFO: The VNC server is already running"
- exit 0
- else
- echo "WARNING: Xvnc (vncserver) isn't running. Starting it."
- vncserver &
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement