summarylogtreecommitdiffstats
path: root/vboxweb.rc
diff options
context:
space:
mode:
authorDaniel Bermond2020-09-05 11:57:17 +0000
committerDaniel Bermond2020-09-05 11:57:17 +0000
commit166ae9ec9fc762d8a6561ab9547170c643f35918 (patch)
treede9f50116c32a04ffdf90f7ce11dd790ecf16380 /vboxweb.rc
parenta92486e4ad8c06ded21573b245788db18e14e021 (diff)
downloadaur-166ae9ec9fc762d8a6561ab9547170c643f35918.tar.gz
Major rewrite
changes: - added split packages for sdk and guest iso (this will significantly reduce the size of the main virtualbox-bin package, while allowing users to install only the needed additional components) - added components: modules reload script, rdesktop-vrdp and web service - fixed symlinks of VBox executables in /usr/bin (now they correctly point to the 'VBox.sh' executable dispatcher) - fixed install of virtualbox.svg scalable icon - updated udev rules - removed obsolete files - removed rdesktop-vrdp packed sources - removed unneeded version from the configuration file vbox.cfg - removed unneeded makedepends, depends and optdepends to conform with the DKMS package guidelines from the Arch Wiki - cosmetic changes
Diffstat (limited to 'vboxweb.rc')
-rw-r--r--vboxweb.rc86
1 files changed, 0 insertions, 86 deletions
diff --git a/vboxweb.rc b/vboxweb.rc
deleted file mode 100644
index 97273e3c7391..000000000000
--- a/vboxweb.rc
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/vbox/vbox.cfg
-. /etc/conf.d/vboxweb
-
-BINARY="$INSTALL_DIR/vboxwebsrv"
-
-start() {
- stat_busy "Starting VirtualBox Web Service";
- if ! pidof -o %PPID $BINARY >/dev/null; then
- [[ "$VBOXWEB_USER" ]] || stat_die
- lsmod | grep -q "vboxdrv[^_-]" || stat_die
- PARAMS="--background"
- [[ "$VBOXWEB_HOST" ]] && PARAMS+=" -H $VBOXWEB_HOST"
- [[ "$VBOXWEB_PORT" ]] && PARAMS+=" -p $VBOXWEB_PORT"
- [[ "$VBOXWEB_TIMEOUT" ]] && PARAMS+=" -t $VBOXWEB_TIMEOUT"
- [[ "$VBOXWEB_CHECK_INTERVAL" ]] && PARAMS+=" -i $VBOXWEB_CHECK_INTERVAL"
- [[ "$VBOXWEB_THREADS" ]] && PARAMS+=" -T $VBOXWEB_THREADS"
- [[ "$VBOXWEB_KEEPALIVE" ]] && PARAMS+=" -k $VBOXWEB_KEEPALIVE"
- [[ "$VBOXWEB_LOGFILE" ]] && PARAMS+=" -F $VBOXWEB_LOGFILE"
- # prevent inheriting this setting to VBoxSVC
- unset VBOX_RELEASE_LOG_DEST
- su - $VBOXWEB_USER -c "$BINARY $PARAMS" &>/dev/null
- # ugly: wait until the final process has forked
- sleep .2
- if pidof -o %PPID $BINARY >/dev/null; then
- add_daemon vboxweb
- stat_done
- else
- stat_die
- fi
- else
- stat_die
- fi
-}
-
-stop() {
- stat_busy "Stopping VirtualBox Web Service"
- PID=$(pidof -o %PPID $BINARY)
- [[ $PID ]] && kill $PID &>/dev/null
- if ! pidof -o %PPID $BINARY >/dev/null; then
- rm_daemon vboxweb
- stat_done
- else
- stat_die
- fi
-}
-
-restart() {
- stop && start
-}
-
-status() {
- stat_busy "Checking for VirtualBox Web Service"
- if pidof -o %PPID $BINARY >/dev/null; then
- stat_done
- else
- stat_fail
- false
- fi
-}
-
-case "$1" in
-start)
- start
- ;;
-stop)
- stop
- ;;
-restart)
- restart
- ;;
-force-reload)
- restart
- ;;
-status)
- status
- ;;
-*)
- echo "Usage: $0 {start|stop|restart|status}"
- exit 1
-esac
-
-# vim:set ts=2 sw=2 ft=sh et: