Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # /etc/init.d/tightvncserver
- VNCUSER='pi'
- case "$1" in
- start)
- su $VNCUSER -c '/usr/bin/tightvncserver :1'
- echo "Starting TightVNC Server for $VNCUSER "
- ;;
- stop)
- pkill Xtightvnc
- echo "TightVNC Server stopped"
- ;;
- *)
- echo "Usage: /etc/init.d/tightvncserver {start|stop}"
- exit 1
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement