we need to restart murmur if we're updating the db directly, so in the future we need to RPC/DBUS/ICE this
This commit is contained in:
parent
08d3958b47
commit
704e590891
@ -1,2 +1,3 @@
|
|||||||
-add lsChans()
|
-add lsChans()
|
||||||
-lsACL? lsBans? edit these?
|
-lsACL? lsBans? edit these?
|
||||||
|
-find out some way to use the DBus/ICE/RPC interface instead? then we can get rid of the reload
|
@ -6,6 +6,7 @@ import hashlib
|
|||||||
import os
|
import os
|
||||||
import pprint
|
import pprint
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
class Manager(object):
|
class Manager(object):
|
||||||
@ -301,6 +302,8 @@ class Manager(object):
|
|||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
self.conn.close()
|
self.conn.close()
|
||||||
|
_cmd = ['systemctl', 'restart', 'murmur']
|
||||||
|
subprocess.run(_cmd)
|
||||||
return()
|
return()
|
||||||
|
|
||||||
def parseArgs():
|
def parseArgs():
|
||||||
|
Loading…
Reference in New Issue
Block a user