Bug#581342: incorrect and reversed behavior in "/etc/init.d/udhcpd restart"
Package: udhcpd
Version: 1:1.15.3-1
Severity: important
In the startup script, "/etc/init.d/udhcpd", the "restart" option has the stopping and
starting of udhcpd reversed. That is, when '/etc/init.d/udhcpd restart' is run, udhcpd
first gets started, then stopped, when it should first stop it, and then start it.
To fix, change the following in "/etc/init.d/udhcpd":
restart|force-reload)
$0 start
sleep 1
$0 stop
To the following:
restart|force-reload)
$0 stop
sleep 1
$0 start
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
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 udhcpd depends on:
ii busybox 1:1.15.3-1 Tiny utilities for small and embed
udhcpd recommends no packages.
udhcpd suggests no packages.
-- Configuration Files:
/etc/default/udhcpd changed [not included]
/etc/udhcpd.conf changed [not included]
-- no debconf information
Regards
//beardy (Tobias)
Reply to: