Signed-off-by: Simon Xu <[email protected]>
---
testcases/network/xinetd/xinetd_tests.sh | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/testcases/network/xinetd/xinetd_tests.sh
b/testcases/network/xinetd/xinetd_tests.sh
index dac23a8..38cd7b0 100755
--- a/testcases/network/xinetd/xinetd_tests.sh
+++ b/testcases/network/xinetd/xinetd_tests.sh
@@ -63,6 +63,8 @@ init()
export TST_TOTAL=2
export TCID="xinetd"
export TST_COUNT=0
+ export XINETD_DAEMON='xinetd'
+ . daemonlib.sh
# Inititalize cleanup function.
trap "cleanup" 0
@@ -226,7 +228,7 @@ cleanup()
sleep 1s
# restoring original services
- /etc/init.d/xinetd restart > $LTPTMP/tst_xinetd.err 2>&1
+ restart_daemon $XINETD_DAEMON > $LTPTMP/tst_xinetd.err 2>&1
RC=$?
if [ $RC -ne 0 ]
then
@@ -285,7 +287,7 @@ test01()
sleep 1s
# restart xinetd to re-start the services
- /etc/init.d/xinetd restart > $LTPTMP/tst_xinetd.out 2>&1
+ restart_daemon $XINETD_DAEMON > $LTPTMP/tst_xinetd.out 2>&1
RC=$?
if [ $RC -ne 0 ]
then
@@ -352,7 +354,7 @@ test01()
sleep 1s
# restart services.
- /etc/init.d/xinetd restart > $LTPTMP/tst_xinetd.out 2>&1
+ restart_daemon $XINETD_DAEMON > $LTPTMP/tst_xinetd.out 2>&1
RC=$?
if [ $RC -ne 0 ]
then
--
1.9.1
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list