VirtualBox

Ignore:
Timestamp:
Oct 20, 2015 9:34:06 AM (9 years ago)
Author:
vboxsync
Message:

Installers/linux: service output clean-up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd-service.sh

    r57985 r58326  
    2727
    2828PATH=$PATH:/bin:/sbin:/usr/sbin
    29 SCRIPTNAME=vboxadd-service
     29SCRIPTNAME=vboxadd-service.sh
    3030
    3131PIDFILE="/var/run/${SCRIPTNAME}"
     
    3939{
    4040    test -n "${2}" && echo "${SCRIPTNAME}: ${1}."
    41     logger "${SCRIPTNAME}: ${1}."
     41    logger -t "${SCRIPTNAME}" "${1}."
    4242}
    4343
    4444succ_msg()
    4545{
    46     logger "${SCRIPTNAME}: done."
     46    logger -t "${SCRIPTNAME}" "${1}."
    4747}
    4848
    4949fail_msg()
    5050{
    51     echo "${SCRIPTNAME}: failed." >&2
    52     logger "${SCRIPTNAME}: failed."
     51    echo "${SCRIPTNAME}: ${1}." >&2
     52    logger -t "${SCRIPTNAME}" "${1}."
    5353}
    5454
     
    9595        daemon $binary --pidfile $PIDFILE > /dev/null
    9696        RETVAL=$?
    97         succ_msg
     97        succ_msg "VirtualBox Guest Addition service started"
    9898    fi
    9999    return $RETVAL
     
    107107        if ! pidof VBoxService > /dev/null 2>&1; then
    108108            rm -f $PIDFILE
    109             succ_msg
     109            succ_msg "VirtualBox Guest Addition service stopped"
    110110        else
    111             fail_msg
     111            fail_msg "VirtualBox Guest Addition service failed to stop"
    112112        fi
    113113    fi
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette