Created
March 27, 2014 19:45
-
-
Save anaynayak/9816524 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment