Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/bin/sh
  2. # Starts TigerVNC if it's not started.
  3.  
  4. export PATH=$PATH:/bin:/usr/bin:/sbin:/usr/sbin:
  5.  
  6. IS_RUNNING=`ps auxw| grep Xvnc | wc -l`
  7. if [ $IS_RUNNING -ge 1 ]; then
  8. echo "INFO: The VNC server is already running"
  9. exit 0
  10. else
  11. echo "WARNING: Xvnc (vncserver) isn't running. Starting it."
  12. vncserver &
  13. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement