]> git.parisson.com Git - telecaster-client.git/commitdiff
use nohup for subprocess
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 15 Jun 2021 16:23:45 +0000 (18:23 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 15 Jun 2021 16:23:45 +0000 (18:23 +0200)
telecaster/models.py

index 146f6cee09cafe9d9c5c71f9acc94bf6eac6d4c2..2bcb846f6e0d16c57053353053953d689de4c537 100644 (file)
@@ -188,13 +188,12 @@ class Station(Model):
         conf_file.close()
 
     def deefuzzer_start(self):
-        command = '/usr/local/bin/deefuzzer ' + self.deefuzzer_file.path + ' > /dev/null &'
+        command = 'nohup /usr/local/bin/deefuzzer ' + self.deefuzzer_file.path + ' &'
         os.system(command)
         time.sleep(0.5)
         pid = get_pid('deefuzzer', args=self.deefuzzer_file.path)
         if pid:
             self.pid = pid
-        self.save()
 
     def deefuzzer_stop(self):
         pid = get_pid('deefuzzer', args=self.deefuzzer_file.path)