mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 15:32:19 +03:00
kill self process
This commit is contained in:
parent
9ffd543cfb
commit
414ac032bf
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@ import signal
|
|||
import sys
|
||||
import threading
|
||||
import time
|
||||
import subprocess
|
||||
|
||||
from base.Scope import Scope
|
||||
from base.config.ConfigManager import ConfigManager
|
||||
|
@ -241,6 +242,7 @@ class AhenkDeamon(BaseDaemon):
|
|||
scope = Scope.getInstance()
|
||||
scope.getMessager().disconnect()
|
||||
# TODO kill thread
|
||||
subprocess.Popen('kill -9 '+get_pid_number(), shell=True)
|
||||
print('stopping ahenk')
|
||||
else:
|
||||
logger.error('[AhenkDeamon] Unknown command error. Command:' + params[0])
|
||||
|
|
Loading…
Reference in a new issue