wok diff virtualbox-ose-guestutils/stuff/VBoxService @ rev 22637
updated ddrescue (1.14 -> 1.24)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jan 13 17:28:06 2020 +0100 (2020-01-13) |
parents | 315d0dde6e3a |
children |
line diff
1.1 --- a/virtualbox-ose-guestutils/stuff/VBoxService Tue Feb 19 20:23:53 2013 +0000 1.2 +++ b/virtualbox-ose-guestutils/stuff/VBoxService Mon Jan 13 17:28:06 2020 +0100 1.3 @@ -7,7 +7,7 @@ 1.4 . /etc/daemons.conf 1.5 1.6 NAME=VBoxService 1.7 -DESC="VirtualBox Guest Service" 1.8 +DESC="$(_ 'VirtualBox Guest Service')" 1.9 DAEMON=/usr/bin/VBoxService 1.10 OPTIONS=$VBOXSERVICE_OPTIONS 1.11 PIDFILE=/var/run/VBoxService.pid 1.12 @@ -15,37 +15,36 @@ 1.13 case "$1" in 1.14 start) 1.15 if active_pidfile $PIDFILE VBoxService ; then 1.16 - echo "$NAME already running." 1.17 + _ '%s is already running.' $NAME 1.18 exit 1 1.19 fi 1.20 - echo -n "Starting $DESC: $NAME... " 1.21 + action 'Starting %s: %s...' "$DESC" $NAME 1.22 mkdir -p $(dirname $PIDFILE) 1.23 $DAEMON $OPTIONS 1.24 status ;; 1.25 stop) 1.26 if ! active_pidfile $PIDFILE VBoxService ; then 1.27 - echo "$NAME is not running." 1.28 + _ '%s is not running.' 1.29 exit 1 1.30 fi 1.31 - echo -n "Stopping $DESC: $NAME... " 1.32 + action 'Stopping %s: %s...' "$DESC" $NAME 1.33 kill $(cat $PIDFILE) 1.34 rm $PIDFILE 1.35 status ;; 1.36 restart) 1.37 if ! active_pidfile $PIDFILE VBoxService ; then 1.38 - echo "$NAME is not running." 1.39 + _ '%s is not running.' $NAME 1.40 exit 1 1.41 fi 1.42 - echo -n "Restarting $DESC: $NAME... " 1.43 + action 'Restarting %s: %s...' "$DESC" $NAME 1.44 kill $(cat $PIDFILE) 1.45 rm $PIDFILE 1.46 sleep 2 1.47 $DAEMON $OPTIONS 1.48 status ;; 1.49 *) 1.50 - echo "" 1.51 - echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" 1.52 - echo "" 1.53 + emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]" 1.54 + newline 1.55 exit 1 ;; 1.56 esac 1.57