From 4b580f26cb52b906d58283789572e271a7e33aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Thu, 11 Aug 2016 18:26:52 +0300 Subject: [PATCH] session close feature added --- opt/ahenk/base/util/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opt/ahenk/base/util/util.py b/opt/ahenk/base/util/util.py index 96efda3..9bd4df3 100644 --- a/opt/ahenk/base/util/util.py +++ b/opt/ahenk/base/util/util.py @@ -18,6 +18,10 @@ class Util: def __init__(self): super().__init__() + @staticmethod + def close_session(username): + Util.execute('pkill -9 -u {0}'.format(username)) + @staticmethod def create_file(full_path): try: