From: Chris Koeritz Date: Wed, 8 Nov 2017 19:06:58 +0000 (-0500) Subject: oasdi X-Git-Tag: 2.140.90~35 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=2b112b4afcc3f44ecfc86b995b39bf72fa993078;p=feisty_meow.git oasdi --- diff --git a/experiments/init.d/vncserver b/experiments/init.d/vncserver deleted file mode 100755 index 2b6e6dd2..00000000 --- a/experiments/init.d/vncserver +++ /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 index 00000000..2b6e6dd2 --- /dev/null +++ b/experiments/init.d/vncserver.001 @@ -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 index 00000000..73bdec08 --- /dev/null +++ b/experiments/init.d/vncserver.002 @@ -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 +