Changeset 58326 in vbox for trunk/src/VBox/Additions/linux/installer/vboxadd-service.sh
- Timestamp:
- Oct 20, 2015 9:34:06 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd-service.sh
r57985 r58326 27 27 28 28 PATH=$PATH:/bin:/sbin:/usr/sbin 29 SCRIPTNAME=vboxadd-service 29 SCRIPTNAME=vboxadd-service.sh 30 30 31 31 PIDFILE="/var/run/${SCRIPTNAME}" … … 39 39 { 40 40 test -n "${2}" && echo "${SCRIPTNAME}: ${1}." 41 logger "${SCRIPTNAME}:${1}."41 logger -t "${SCRIPTNAME}" "${1}." 42 42 } 43 43 44 44 succ_msg() 45 45 { 46 logger "${SCRIPTNAME}: done."46 logger -t "${SCRIPTNAME}" "${1}." 47 47 } 48 48 49 49 fail_msg() 50 50 { 51 echo "${SCRIPTNAME}: failed." >&252 logger "${SCRIPTNAME}: failed."51 echo "${SCRIPTNAME}: ${1}." >&2 52 logger -t "${SCRIPTNAME}" "${1}." 53 53 } 54 54 … … 95 95 daemon $binary --pidfile $PIDFILE > /dev/null 96 96 RETVAL=$? 97 succ_msg 97 succ_msg "VirtualBox Guest Addition service started" 98 98 fi 99 99 return $RETVAL … … 107 107 if ! pidof VBoxService > /dev/null 2>&1; then 108 108 rm -f $PIDFILE 109 succ_msg 109 succ_msg "VirtualBox Guest Addition service stopped" 110 110 else 111 fail_msg 111 fail_msg "VirtualBox Guest Addition service failed to stop" 112 112 fi 113 113 fi
Note:
See TracChangeset
for help on using the changeset viewer.