[csw-devel] SF.net SVN: gar:[7263] csw/mgar/pkg/tightvnc/trunk/files/cswvncserver

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Fri Nov 13 15:03:33 CET 2009


Revision: 7263
          http://gar.svn.sourceforge.net/gar/?rev=7263&view=rev
Author:   wahwah
Date:     2009-11-13 14:03:33 +0000 (Fri, 13 Nov 2009)

Log Message:
-----------
vncserver: startup script standarizing on spaces

Modified Paths:
--------------
    csw/mgar/pkg/tightvnc/trunk/files/cswvncserver

Modified: csw/mgar/pkg/tightvnc/trunk/files/cswvncserver
===================================================================
--- csw/mgar/pkg/tightvnc/trunk/files/cswvncserver	2009-11-13 14:02:32 UTC (rev 7262)
+++ csw/mgar/pkg/tightvnc/trunk/files/cswvncserver	2009-11-13 14:03:33 UTC (rev 7263)
@@ -1,9 +1,10 @@
 #!/opt/csw/bin/bash
+# vim:set ft=4 sw=4 sts=4 expandtab:
 #
 # $Id$
 #
 # description: Starts and stops vncserver. \
-#	       used to provide remote X administration services.
+#              used to provide remote X administration services.
 
 VNCSERVERS=""
 ARGS=""
@@ -34,7 +35,7 @@
     for display in ${VNCSERVERS}
     do
         echo "${display} "
-	su ${display##*:} -c "vncserver -kill :${display%%:*} >/dev/null 2>&1"
+        su ${display##*:} -c "vncserver -kill :${display%%:*} >/dev/null 2>&1"
         RETVAL=$?
     done
     [ "$RETVAL" -eq 0 ] && rm -f /var/spool/locks/vncserver
@@ -43,23 +44,23 @@
 # See how we were called.
 case "$1" in
   start)
-	start
-	;;
+        start
+        ;;
   stop)
-	stop
-	;;
+        stop
+        ;;
   restart|reload)
-	stop
-	start
-	;;
+        stop
+        start
+        ;;
   condrestart)
-	if [ -f /var/spool/locks/vncserver ]; then
-	    stop
-	    start
-	fi
-	;;
+        if [ -f /var/spool/locks/vncserver ]; then
+            stop
+            start
+        fi
+        ;;
   *)
-	echo $"Usage: $0 {start|stop|restart|condrestart}"
-	exit 1
+        echo $"Usage: $0 {start|stop|restart|condrestart}"
+        exit 1
 esac
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list