tftpd-hpa: fix premature exit
PATCH 1/1 tftpd-hpa: fix premature exit
standalone daemon exits as recipe installs file as tftpd-hpa
* Changed script so it can consult /etc/default, as daemon name may be subject to change.
* Changed the default name to match the recipe
Signed-off-by David Turgeon <[email protected]>
--- .../recipes-daemons/tftp-hpa/files/init | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
meta-networking/recipes-daemons/tftp-hpa/files/init +7 -6
@@ -18,20 +18,21 @@ set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="HPA's tftpd" -NAME=in.tftpd -DAEMON=/usr/sbin/$NAME -PIDFILE=/var/run/$NAME.pid +NAME=in.tftpd-hpa SCRIPTNAME=/etc/init.d/tftpd-hpa -# Gracefully exit if the package has been removed. -test -x $DAEMON || exit 0 - # Read config file if it is present. if [ -r /etc/default/tftpd-hpa ] then . /etc/default/tftpd-hpa fi +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/$NAME.pid + +# Gracefully exit if the package has been removed. +test -x $DAEMON || exit 0 + if [ "$RUN_DAEMON" != "yes" ] ; then echo "tftpd-hpa disabled in /etc/default/tftpd-hpa" exit 0
Signature · 1 line
1.7.9.5
ping
Quoted 48 lines · David Turgeon
standalone daemon exits as recipe installs file as tftpd-hpa
* Changed script so it can consult
/etc/default, as daemon name may be subject to change.
* Changed the default name to match the recipeSigned-off-by David Turgeon <[email protected]>--- .../recipes-daemons/tftp-hpa/files/init | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)meta-networking/recipes-daemons/tftp-hpa/files/init +7
-7@@ -18,20 +18,21 @@ set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="HPA's tftpd" -NAME=in.tftpd -DAEMON=/usr/sbin/$NAME -PIDFILE=/var/run/$NAME.pid +NAME=in.tftpd-hpa SCRIPTNAME=/etc/init.d/tftpd-hpa -# Gracefully exit if the package has been removed. -test -x $DAEMON || exit 0 - # Read config file if it is present. if [ -r /etc/default/tftpd-hpa ] then . /etc/default/tftpd-hpa fi +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/$NAME.pid + +# Gracefully exit if the package has been removed. +test -x $DAEMON || exit 0 + if [ "$RUN_DAEMON" != "yes" ] ; then echo "tftpd-hpa disabled in /etc/default/tftpd-hpa" exit 0 --1.7.9.5
Signature · 1 line
Dave
Joe MacDonald
AppliedMerged, thanks.
-J.
Quoted 43 lines · [[oe] [meta-oe][PATCH] tftpd-hpa: fix premature exit] On 13.10.12 (Sat 10:04)…
standalone daemon exits as recipe installs file as tftpd-hpa
* Changed script so it can consult
/etc/default, as daemon name may be subject to change.
* Changed the default name to match the recipeSigned-off-by David Turgeon <[email protected]>--- .../recipes-daemons/tftp-hpa/files/init | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)meta-networking/recipes-daemons/tftp-hpa/files/init +7
-6@@ -18,20 +18,21 @@ set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="HPA's tftpd" -NAME=in.tftpd -DAEMON=/usr/sbin/$NAME -PIDFILE=/var/run/$NAME.pid +NAME=in.tftpd-hpa SCRIPTNAME=/etc/init.d/tftpd-hpa -# Gracefully exit if the package has been removed. -test -x $DAEMON || exit 0 - # Read config file if it is present. if [ -r /etc/default/tftpd-hpa ] then . /etc/default/tftpd-hpa fi +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/$NAME.pid + +# Gracefully exit if the package has been removed. +test -x $DAEMON || exit 0 + if [ "$RUN_DAEMON" != "yes" ] ; then echo "tftpd-hpa disabled in /etc/default/tftpd-hpa" exit 0
Signature · 2 lines
-Joe MacDonald. :wq