Package: apt-proxy Severity: normal Please review this patch for LSB compliance. I apologize in advance if this is not the correct method for specifying patches etc.
diff -pruN 1.9.35-0.1/debian/init.d 1.9.35-0.1ubuntu1/debian/init.d --- 1.9.35-0.1/debian/init.d 2005-02-25 12:13:22.000000000 +0000 +++ 1.9.35-0.1ubuntu1/debian/init.d 2007-01-10 00:15:22.000000000 +0000 @@ -10,6 +10,8 @@ twistd=/usr/bin/twistd user=aptproxy group=nogroup +. /lib/lsb/init-functions + [ -r /etc/default/apt-proxy ] && . /etc/default/apt-proxy test -x $twistd || exit 0 @@ -33,7 +35,7 @@ alive() case "$1" in start) - echo -n "Starting apt-proxy" + log_daemon_msg "Starting apt-proxy" [ ! -d $rundir ] && mkdir $rundir [ ! -f $logfile ] && touch $logfile chown $user $rundir $logfile @@ -43,11 +45,11 @@ case "$1" in start-stop-daemon --start --quiet --exec $twistd -- \ --pidfile=$pidfile --rundir=$rundir --python=$application \ --logfile=$logfile --no_save - echo "." + log_end_msg $? ;; stop) - echo -n "Stopping apt-proxy" + log_daemon_msg "Stopping apt-proxy" start-stop-daemon --stop --quiet --pidfile $pidfile # # Continue stopping until daemon finished or time over @@ -70,7 +72,7 @@ case "$1" in if [ $count -gt 1 ]; then echo -n "]" fi - echo "." + log_end_msg $? ;; restart) @@ -83,7 +85,7 @@ case "$1" in ;; *) - echo "Usage: /etc/init.d/apt-proxy {start|stop|restart|force-reload}" >&2 + log_success_msg "Usage: /etc/init.d/apt-proxy {start|stop|restart|force-reload}" exit 1 ;; esac -- System Information: Debian Release: testing/unstable APT prefers edgy-updates APT policy: (500, 'edgy-updates'), (500, 'edgy-security'), (500, 'edgy') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.17-10-generic Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)