From 704e59089104b70bffc3e4ff98e4a55117dc27c6 Mon Sep 17 00:00:00 2001 From: brent s Date: Tue, 10 Oct 2017 20:14:33 -0400 Subject: [PATCH] we need to restart murmur if we're updating the db directly, so in the future we need to RPC/DBUS/ICE this --- mumble/TODO | 3 ++- mumble/usermgmt.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mumble/TODO b/mumble/TODO index d84f4b7..46e1abe 100644 --- a/mumble/TODO +++ b/mumble/TODO @@ -1,2 +1,3 @@ -add lsChans() --lsACL? lsBans? edit these? \ No newline at end of file +-lsACL? lsBans? edit these? +-find out some way to use the DBus/ICE/RPC interface instead? then we can get rid of the reload \ No newline at end of file diff --git a/mumble/usermgmt.py b/mumble/usermgmt.py index 0de1986..71836af 100755 --- a/mumble/usermgmt.py +++ b/mumble/usermgmt.py @@ -6,6 +6,7 @@ import hashlib import os import pprint import sqlite3 +import subprocess import sys class Manager(object): @@ -301,6 +302,8 @@ class Manager(object): def close(self): self.conn.close() + _cmd = ['systemctl', 'restart', 'murmur'] + subprocess.run(_cmd) return() def parseArgs():