tftp service restart fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tftp-hpa (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
$ sudo /etc/init.
$ lsb_release -rd
Description: Ubuntu 7.04
Release: 7.04
As evidenced by the following terminal session, a restart of the tftpd-hpa service does not [ever?] work. My investigation lead me to conclude that the script's call to d_stop never returns; the script simply exits.
I fixed the problem on my platform [virtualized Ubuntu 7.04] by placing the call to d_stop in a sub-shell:
$ cat -n /etc/init.
o o o
71 restart|
72 #
73 # If the "reload" option is implemented, move the "force-reload"
74 # option to the "reload" entry above. If not, "force-reload" is
75 # just the same as "restart".
76 #
77 echo -n "Restarting $DESC: $NAME"
78 # d_stop # broken - exits script prematurely
79 ( d_stop ) # fixed - returns to call d_start
80 sleep 1
81 d_start
82 echo "."
83 ;;
o o o
... Dave
$ sudo /etc/init.
Password:
Restarting HPA's tftpd: in.tftpd~
$ ps -aef | grep tft
root 2846 27782 0 10:53 pts/0 00:00:00 tftp
feathers 3015 28822 0 10:55 pts/1 00:00:00 grep tft
$ ps -aef | grep ftp
root 2846 27782 0 10:53 pts/0 00:00:00 tftp
feathers 3055 28822 0 10:56 pts/1 00:00:00 grep ftp
$ sudo /etc/init.
Stopping HPA's tftpd: in.tftpd~
$ ps -aef | grep ftp
root 2846 27782 0 10:53 pts/0 00:00:00 tftp
feathers 3127 28822 0 10:57 pts/1 00:00:00 grep ftp
$ sudo /etc/init.
Starting HPA's tftpd: in.tftpd.
$ ps -aef | grep ftp
root 2846 27782 0 10:53 pts/0 00:00:00 tftp
root 3140 1 0 10:57 ? 00:00:00 /usr/sbin/in.tftpd -a 192.168.
feathers 3147 28822 0 10:57 pts/1 00:00:00 grep ftp
Is this symptom still reproducible in 8.10 or 9.04?