vboxballoonctrl-service.sh.in revision 8ee2210a5350e50b852d6aaeb997aaeafe0e1f82
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# VirtualBox balloon control daemon init script.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Copyright (C) 2006-2011 Oracle Corporation
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# available from http://www.virtualbox.org. This file is free software;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# you can redistribute it and/or modify it under the terms of the GNU
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# General Public License (GPL) as published by the Free Software
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# chkconfig: 35 35 65
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# description: VirtualBox balloon control daemon
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync### BEGIN INIT INFO
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Provides: vboxballoonctrl-service
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Required-Start: vboxdrv
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Required-Stop: vboxdrv
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Default-Start: 2 3 4 5
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Default-Stop: 0 1 6
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Description: VirtualBox balloon control daemon
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync### END INIT INFO
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncif [ -n "$INSTALL_DIR" ]; then
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# silently exit if the package was uninstalled but not purged,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# applies to Debian packages only
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync[ -r /etc/default/%PACKAGE% ] && . /etc/default/%PACKAGE%
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncif [ -z "$NOLSB" ]; then
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync if [ -n "$NOLSB" ]; then
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync if [ -n "$NOLSB" ]; then
rc_status -v
rc_status -v
if [ -n "$NOLSB" ]; then
if [ -n "$NOLSB" ]; then
killall $@
if [ -n "$NOLSB" ]; then
killall $1
if [ -n "$NOLSB" ]; then
if [ -n "$NOLSB" ]; then
statusproc $1
if [ -n "$NOLSB" ]; then
if ! test -f $PIDFILE; then
[ -n "$VBOXBALLOONCTRL_LOWERLIMIT" ] && PARAMS="$PARAMS --balloon-lower-limit $VBOXBALLOONCTRL_LOWERLIMIT"
unset VBOX_RELEASE_LOG_DEST
sleep .1
RETVAL=0
RETVAL=1
return $RETVAL
if test -f $PIDFILE; then
RETVAL=$?
return $RETVAL
stop && start
if [ -f $PIDFILE ]; then
exit $RETVAL