* [LTP] [PATCH] cmdlib.sh: fix a bug of restart_daemon
@ 2013-07-09 6:32 Peng Haitao
2013-07-09 6:38 ` Wanlong Gao
0 siblings, 1 reply; 2+ messages in thread
From: Peng Haitao @ 2013-07-09 6:32 UTC (permalink / raw)
To: ltp-list
start should be replaced with restart in restart_daemon().
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
---
testcases/lib/cmdlib.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/lib/cmdlib.sh b/testcases/lib/cmdlib.sh
index 7819cb7..b1ea15e 100644
--- a/testcases/lib/cmdlib.sh
+++ b/testcases/lib/cmdlib.sh
@@ -198,8 +198,8 @@ status_daemon()
restart_daemon()
{
if [ $HAVE_SYSTEMCTL -eq 1 ]; then
- systemctl start $1.service > /dev/null 2>&1
+ systemctl restart $1.service > /dev/null 2>&1
else
- service $1 start > /dev/null 2>&1
+ service $1 restart > /dev/null 2>&1
fi
}
--
1.8.3.1
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-09 6:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-09 6:32 [LTP] [PATCH] cmdlib.sh: fix a bug of restart_daemon Peng Haitao
2013-07-09 6:38 ` Wanlong Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox