mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Force db connections close before launching the server.
This commit is contained in:
@@ -8,6 +8,7 @@ import time
|
||||
|
||||
import redis
|
||||
|
||||
from django import db
|
||||
from django.conf import settings
|
||||
from django.core.management import call_command
|
||||
|
||||
@@ -21,6 +22,7 @@ from . import constants
|
||||
|
||||
|
||||
def start_policy_daemon():
|
||||
db.connections.close_all()
|
||||
call_command("policy_daemon")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user