summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/server
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-06-17 18:47:56 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-06-17 18:47:56 +0300
commitd93a7ff83d3d29fc6c254dd56af235dbe7abacb3 (patch)
treed4be7b58fb6712a71c34152aae7bf74ac72e43cd /scripts/automation/trex_control_plane/server
parent3207f14a91cc01b44b28ba541e5968f58a7e5ec2 (diff)
master_daemon: show better status of executed command
Diffstat (limited to 'scripts/automation/trex_control_plane/server')
-rwxr-xr-xscripts/automation/trex_control_plane/server/singleton_daemon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/server/singleton_daemon.py b/scripts/automation/trex_control_plane/server/singleton_daemon.py
index 79deace1..1784cc42 100755
--- a/scripts/automation/trex_control_plane/server/singleton_daemon.py
+++ b/scripts/automation/trex_control_plane/server/singleton_daemon.py
@@ -86,7 +86,7 @@ class SingletonDaemon(object):
def kill(self, timeout = 15):
pid = self.get_pid()
if not pid:
- return False
+ raise Exception('%s is not running' % self.name)
# try Ctrl+C, usual kill, kill -9
for signal_name in [signal.SIGINT, signal.SIGTERM, signal.SIGKILL]:
if self.kill_by_signal(pid, signal_name, timeout):