bugfix:start tftp

restart xinetd service after excute "cobbler sync" so that tftp can be started

Change-Id: Ib17688190f5d181ebf26d639fa6fcef5e3aebf44
Signed-off-by: baigk <baiguoku@huawei.com>
This commit is contained in:
baigk 2016-02-03 18:48:38 +08:00
parent be47044989
commit b61eeb4b44

View File

@ -167,7 +167,6 @@ sudo chmod -R 777 /var/log/cobbler
sudo systemctl restart httpd.service sudo systemctl restart httpd.service
sudo systemctl restart cobblerd.service sudo systemctl restart cobblerd.service
sudo systemctl restart named.service sudo systemctl restart named.service
sudo systemctl restart xinetd.service
sudo sleep 10 sudo sleep 10
sudo cobbler sync sudo cobbler sync
@ -194,6 +193,7 @@ if [[ "$?" != "0" ]]; then
exit 1 exit 1
fi fi
sudo systemctl restart xinetd.service
echo "Checking if xinetd is running" echo "Checking if xinetd is running"
sudo systemctl status xinetd.service sudo systemctl status xinetd.service
if [[ "$?" != "0" ]]; then if [[ "$?" != "0" ]]; then