Package: lsb-base Version: 3.2-28.1 Severity: normal File: /lib/lsb/init-functions Usertags: pca.it-init
Hi there! openvpn's init script has the following: --8<---------------cut here---------------start------------->8--- 78 start) 79 log_daemon_msg "Starting $DESC" 80 81 # autostart VPNs 82 if test -z "$2" ; then 83 # check if automatic startup is disabled by AUTOSTART=none 84 if test "x$AUTOSTART" = "xnone" -o -z "$AUTOSTART" ; then 85 log_warning_msg " Autostart disabled." 86 exit 0 87 fi --8<---------------cut here---------------end--------------->8--- Here is the output: ===== root@gismo:/etc# service openvpn start Starting virtual private network daemon:Autostart disabled. ... (warning). root@gismo:/etc# ===== As you can see, the leading space is not respected. I think this is because log_warning_msg calls log_begin_msg, which actually uses `/bin/echo -n "$@"` instead of adding a leading space before $@, as in log_progress_msg. The latter is IMHO more correct, given that there is no *begin* message to be displayed. However, this breaks other init scripts like rsync: --8<---------------cut here---------------start------------->8--- 120 reload|force-reload) 121 log_warning_msg "Reloading rsync daemon: not needed, as the daemon" 122 log_warning_msg "re-reads the config file whenever a client connects." 123 ;; --8<---------------cut here---------------end--------------->8--- So I do not really how this should be solved :-( Thx, bye, Gismo / Luca -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (990, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages lsb-base depends on: ii ncurses-bin 5.9-4 ii sed 4.2.1-9 lsb-base recommends no packages. lsb-base suggests no packages. -- no debconf information
pgpak0c4kuv5S.pgp
Description: PGP signature