diff options
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/vnc/finish | 9 | ||||
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/services/vnc/run | 12 |
2 files changed, 21 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/vnc/finish b/abs/core/runit-scripts/runitscripts/services/vnc/finish new file mode 100755 index 0000000..e5db2ab --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/vnc/finish @@ -0,0 +1,9 @@ +#!/bin/sh +#set -x +exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Stopping vnc service" + +su vncsvc -c "vncserver -kill :1"
\ No newline at end of file diff --git a/abs/core/runit-scripts/runitscripts/services/vnc/run b/abs/core/runit-scripts/runitscripts/services/vnc/run new file mode 100755 index 0000000..c621c2c --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/vnc/run @@ -0,0 +1,12 @@ +#!/bin/sh +#set -x +exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Starting vnc service" +geometry=1024x768 +#. /etc/conf.d/vncserver 2>/dev/null + +exec su vncsvc -c "/usr/bin/vncserver -fg -geometry $geometry :1" + |