Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#21170 - [tftp-hpa] Inconsistency between /etc/rc.shutdown and /etc/rc.d/tftpd

Attached to Project: Arch Linux
Opened by Konrad (nosorozec) - Sunday, 10 October 2010, 08:24 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 14 August 2011, 06:34 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
tftpd daemon cannot be shutdown by /etc/rc.shutdown scripts -> the reason is that /etc/rc.d/tftpd touches the "in.tftpd" file in /var/run/daemons; but when you want to shutdown your system /etc/rc.shutdown executes this loop:

# Find daemons NOT in the DAEMONS array. Shut these down first
if [ -d /var/run/daemons ]; then
for daemon in $(/bin/ls -1t /var/run/daemons); do
if ! in_array $daemon ${DAEMONS[@]}; then
stop_daemon $daemon
fi
done

since on.tftpd is not i DAEMONS arrays; tries to execute /etc/rc.d/in.tftpd -> and you have an error message on the console.



Additional info:
* tftp-hpa 5.0-3

Steps to reproduce:

put tftpd in the DAEMONS arrays then restart your system
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Sunday, 14 August 2011, 06:34 GMT
Reason for closing:  Fixed
Comment by Davie (daschu117) - Wednesday, 04 May 2011, 07:03 GMT
This simply needs the "add_daemon" and "rm_daemon" functions inside "/etc/rc.d/tftpd" to use "tftpd" as the argument instead of "in.tftpd".
Comment by Davie (daschu117) - Sunday, 12 June 2011, 10:13 GMT
Attached is a git-diff containing the needed lines for a fix.
Comment by Davie (daschu117) - Sunday, 14 August 2011, 06:19 GMT
As of at least tftp-hpa 5.1-1, this has been fixed and this ticket should be closed.

Loading...