2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-23 01:51:54 +00:00

-Only do multicast if user exhibits desire to do so, keeps QS blades booting sanely in moderately complex environments without sane multicast configuration

This commit is contained in:
jbjohnso 2008-10-13 19:42:58 +00:00
parent b8de77afbe
commit 4189ba07b1
2 changed files with 9 additions and 2 deletions

View File

@ -2,7 +2,7 @@ Name: atftp
Summary: Advanced Trivial File Transfer Protocol (ATFTP) - TFTP server
Group: System Environment/Daemons
Version: 0.7
Release: 7
Release: 8
License: GPL
Vendor: Linux Networx Inc.
Source: atftp_0.7.dfsg.orig.tar.gz

View File

@ -11,6 +11,9 @@
# Description: ATFTP server
### END INIT INFO
if [ -r /etc/sysconfig/atftpd ]; then
. /etc/sysconfig/atftpd
fi
RHSuccess()
{
@ -53,6 +56,7 @@ else
echo "Error, don't know how to start on this platform"
exit 1
fi
MULTARG="--no-multicast"
case $1 in
restart)
@ -72,7 +76,10 @@ stop)
;;
start)
echo -n "Starting ATFTP "
$START_DAEMON /usr/sbin/atftpd --group nobody --daemon && $LOG_SUCCESS || $LOG_FAILURE
if [ "$ATFTPMULTICAST" == "yes" ]; then
MULTARG=""
fi
$START_DAEMON /usr/sbin/atftpd $MULTARG --group nobody --daemon && $LOG_SUCCESS || $LOG_FAILURE
;;
esac