tftp service restart fails

Bug #206610 reported by David Featherstone
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tftp-hpa (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ sudo /etc/init.d/tftp-hpa restart # stops, but does not start the service

$ 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.d/tftpd-hpa
o o o
   71 restart|force-reload)
   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.d/tftpd-hpa restart
Password:
Restarting HPA's tftpd: in.tftpd~/omnitrol/latest/rx/mgmtserver $
$ 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.d/tftpd-hpa stop
Stopping HPA's tftpd: in.tftpd~/omnitrol/latest/rx/mgmtserver $
$ 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.d/tftpd-hpa start
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.112.101:8069 -c -l -u root -p -B 1024 -s /usr/local
feathers 3147 28822 0 10:57 pts/1 00:00:00 grep ftp

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 or 9.04?

Changed in tftp-hpa:
status: New → Incomplete
Revision history for this message
David Featherstone (feathers) wrote : RE: [Bug 206610] Re: tftp service restart fails

The symptom/bug remains reproducible in 8.10.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Daniel T Chen
Sent: Thursday, December 04, 2008 6:30 PM
To: <email address hidden>
Subject: [Bug 206610] Re: tftp service restart fails

Is this symptom still reproducible in 8.10 or 9.04?

** Changed in: tftp-hpa (Ubuntu)
       Status: New => Incomplete

--
tftp service restart fails
https://bugs.launchpad.net/bugs/206610
You received this bug notification because you are a direct subscriber
of the bug.

Status in “tftp-hpa” source package in Ubuntu: Incomplete

Bug description:
$ sudo /etc/init.d/tftp-hpa restart # stops, but does not start the service

$ 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.d/tftpd-hpa
o o o
   71 restart|force-reload)
   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.d/tftpd-hpa restart
Password:
Restarting HPA's tftpd: in.tftpd~/omnitrol/latest/rx/mgmtserver $
$ 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.d/tftpd-hpa stop
Stopping HPA's tftpd: in.tftpd~/omnitrol/latest/rx/mgmtserver $
$ 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.d/tftpd-hpa start
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.112.101:8069 -c -l -u root -p -B 1024 -s /usr/local
feathers 3147 28822 0 10:57 pts/1 00:00:00 grep ftp

Revision history for this message
Hardik Dalwadi (hardik-dalwadi) wrote :

I am not able to reproduce same issue on 9.04. We can close this bug.

Revision history for this message
Chuck Short (zulcss) wrote :

Closing

Changed in tftp-hpa (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Gursel MUTLU (g-mutlu) wrote :

Last week, tftpd was working but today it doesn't start. I had an automatic kernel update. This may be the reason.
I get response code 71:
$ sudo /etc/init.d/tftpd-hpa restart
Restarting HPA's tftpd: in.tftpdxxx@xxx:/var/lib/tftpboot$ echo $?
71

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.