Commit 075b224d authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

Threat exceptions where kill daemon

parent fb5bd050
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -76,7 +76,10 @@ class Command(BaseCommand):
            sys.exit(0) 
    
    def stop(self, pid):
        try:
            os.kill(int(pid), signal.SIGTERM)
        except OSError as e:
            print(str(e))
    
    def restart(self, pid):
        self.stop(pid)