diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-06-17 18:47:56 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-06-17 18:47:56 +0300 |
commit | d93a7ff83d3d29fc6c254dd56af235dbe7abacb3 (patch) | |
tree | d4be7b58fb6712a71c34152aae7bf74ac72e43cd /scripts/automation/trex_control_plane/server | |
parent | 3207f14a91cc01b44b28ba541e5968f58a7e5ec2 (diff) |
master_daemon: show better status of executed command
Diffstat (limited to 'scripts/automation/trex_control_plane/server')
-rwxr-xr-x | scripts/automation/trex_control_plane/server/singleton_daemon.py | 2 |
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): |