Opened 13 years ago

Last modified 12 years ago

#31737 closed defect

Starting and stopping tftp-hpa seems flaky — at Version 3

Reported by: clarityandobscurity (The Sense of Mystery) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: tftp-hpa

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I installed tftp-hpa +server and it started automatically.

I see it has configuration in /Library/LaunchDaemons/org.macports.tftpd.plist

I went and edited that configuration (added -B 512 and removed -s), and now I try to restart the tftp server.

I get

$ ps -A | grep tftp
 8964 ??         0:00.01 /opt/local/bin/daemondo --label=tftpd --start-cmd /opt/local/sbin/tftpd -L -s /opt/local/var/tftp-hpa/ ; --pid=exec
 8965 ??         0:00.00 /opt/local/sbin/tftpd -L -s /opt/local/var/tftp-hpa/

In daemondo's help it says what it says about SIGHUP and SIGTERM. But no matter how, how many times and how passionately I hang up, terminate or kill either of the processes, or both at the same time, nothing changes.

There is also:

> unload tftp-hpa
Error: Target org.macports.unload returned: Launchd plist /Library/LaunchDaemons/org.macports.tftp-hpa.plist was not found
Log for tftp-hpa is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_tftp-hpa/tftp-hpa/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
> load tftp-hpa  
Error: Target org.macports.load returned: Launchd plist /Library/LaunchDaemons/org.macports.tftp-hpa.plist was not found
Log for tftp-hpa is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_tftp-hpa/tftp-hpa/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Of course it fails because the file is called tftpd.plist and there is no tftp-hpa.plist

But there is also:

$ sudo launchctl unload /Library/LaunchDaemons/org.macports.tftpd.plist 
launchctl: no plist was returned for: /Library/LaunchDaemons/org.macports.tftpd.plist
launchctl: no plist was returned for: /Library/LaunchDaemons/org.macports.tftpd.plist
nothing found to unload
$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.tftpd.plist
launchctl: no plist was returned for: /Library/LaunchDaemons/org.macports.tftpd.plist
launchctl: no plist was returned for: /Library/LaunchDaemons/org.macports.tftpd.plist
nothing found to load

Change History (2)

comment:2 Changed 13 years ago by clarityandobscurity (The Sense of Mystery)

An update. The plist didn't work because I commented out the line with -s with #. Now launchctl loads and unloads tftpd.plist with success.

The remaining problem is that port load and port unload refer to a nonexistent plist.

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Note: See TracTickets for help on using tickets.