oasdi
authorChris Koeritz <fred@gruntose.com>
Wed, 8 Nov 2017 19:06:58 +0000 (14:06 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 8 Nov 2017 19:06:58 +0000 (14:06 -0500)
experiments/init.d/vncserver [deleted file]
experiments/init.d/vncserver.001 [new file with mode: 0755]
experiments/init.d/vncserver.002 [new file with mode: 0755]

diff --git a/experiments/init.d/vncserver b/experiments/init.d/vncserver
deleted file mode 100755 (executable)
index 2b6e6dd..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-PATH="$PATH:/usr/bin/"
-export USER="fred"
-DISPLAY="1"
-DEPTH="16"
-GEOMETRY="1024x768"
-OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
-. /lib/lsb/init-functions
-
-case "$1" in
-start)
-log_action_begin_msg "Starting vncserver for user '${USER}' on localhost:${DISPLAY}"
-su ${USER} -c "/usr/bin/vncserver ${OPTIONS}"
-;;
-
-stop)
-log_action_begin_msg "Stoping vncserver for user '${USER}' on localhost:${DISPLAY}"
-su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"
-;;
-
-restart)
-$0 stop
-$0 start
-;;
-esac
-exit 0
-
diff --git a/experiments/init.d/vncserver.001 b/experiments/init.d/vncserver.001
new file mode 100755 (executable)
index 0000000..2b6e6dd
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/bash
+PATH="$PATH:/usr/bin/"
+export USER="fred"
+DISPLAY="1"
+DEPTH="16"
+GEOMETRY="1024x768"
+OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
+. /lib/lsb/init-functions
+
+case "$1" in
+start)
+log_action_begin_msg "Starting vncserver for user '${USER}' on localhost:${DISPLAY}"
+su ${USER} -c "/usr/bin/vncserver ${OPTIONS}"
+;;
+
+stop)
+log_action_begin_msg "Stoping vncserver for user '${USER}' on localhost:${DISPLAY}"
+su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"
+;;
+
+restart)
+$0 stop
+$0 start
+;;
+esac
+exit 0
+
diff --git a/experiments/init.d/vncserver.002 b/experiments/init.d/vncserver.002
new file mode 100755 (executable)
index 0000000..73bdec0
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/bash
+PATH="$PATH:/usr/bin/"
+export USER="fred"
+DISPLAY="1"
+DEPTH="16"
+GEOMETRY="1200x800"
+OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
+. /lib/lsb/init-functions
+
+case "$1" in
+start)
+log_action_begin_msg "Starting vncserver for user '${USER}' on localhost:${DISPLAY}"
+su ${USER} -c "/usr/bin/vncserver ${OPTIONS}"
+;;
+
+stop)
+log_action_begin_msg "Stoping vncserver for user '${USER}' on localhost:${DISPLAY}"
+su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"
+;;
+
+restart)
+$0 stop
+$0 start
+;;
+esac
+exit 0
+