wok diff gpm/stuff/etc/init.d/gpm @ rev 21849
updated rsnapshot again (1.3.1 -> 1.4.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Sep 15 15:16:26 2019 +0100 (2019-09-15) |
parents | 8ebec64e4191 |
children |
line diff
1.1 --- a/gpm/stuff/etc/init.d/gpm Fri Nov 29 11:43:20 2013 +0000 1.2 +++ b/gpm/stuff/etc/init.d/gpm Sun Sep 15 15:16:26 2019 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 #!/bin/sh 1.5 -# /etc/init.d/gpm : Start, stop and restart gpm server on SliTaz, at 1.6 +# /etc/init.d/gpm : Start, stop and restart gpm server on SliTaz, at 1.7 # boot time or with the command line. 1.8 # 1.9 # To start gpm server at boot time, just put mysql in the $RUN_DAEMONS 1.10 @@ -9,7 +9,7 @@ 1.11 . /etc/daemons.conf 1.12 1.13 NAME=gpm 1.14 -DESC="gpm server" 1.15 +DESC="$(_ '%s server' GPM)" 1.16 DAEMON=/usr/sbin/gpm 1.17 OPTIONS=$GPM_OPTIONS 1.18 [ -n "$OPTIONS" ] || OPTIONS="-m /dev/psaux -t ps2" 1.19 @@ -17,34 +17,36 @@ 1.20 case "$1" in 1.21 start) 1.22 if active_pidfile $PIDFILE gpm ; then 1.23 - echo "$NAME already running." 1.24 + _ '%s is already running.' $NAME 1.25 exit 1 1.26 fi 1.27 + action 'Starting %s: %s...' "$DESC" $NAME 1.28 $DAEMON $OPTIONS 1.29 status 1.30 ;; 1.31 stop) 1.32 if ! active_pidfile $PIDFILE gpm ; then 1.33 - echo "$NAME is not running." 1.34 + _ '%s is not running.' $NAME 1.35 exit 1 1.36 fi 1.37 + action 'Stopping %s: %s...' "$DESC" $NAME 1.38 $DAEMON -k 1.39 status 1.40 ;; 1.41 restart) 1.42 if ! active_pidfile $PIDFILE gpm ; then 1.43 - echo "$NAME is not running." 1.44 + _ '%s is not running.' $NAME 1.45 exit 1 1.46 fi 1.47 + action 'Restarting %s: %s...' "$DESC" $NAME 1.48 $DAEMON -k 1.49 status 1.50 $DAEMON $OPTIONS 1.51 status 1.52 ;; 1.53 *) 1.54 - echo "" 1.55 - echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" 1.56 - echo "" 1.57 + emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]" 1.58 + newline 1.59 exit 1 1.60 ;; 1.61 esac