1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-15 17:37:22 +01:00

move the custom exclusive process code from utils.py into a new python package named exclusiveprocess

This commit is contained in:
Joshua Tauberer
2017-01-01 17:11:31 -05:00
parent 09577816f8
commit a081d04082
4 changed files with 11 additions and 75 deletions

View File

@@ -411,9 +411,11 @@ def provision_certificates(env, agree_to_tos_url=None, logger=None, show_extende
def provision_certificates_cmdline():
import sys
from utils import load_environment, exclusive_process
from exclusiveprocess import Lock
exclusive_process("update_tls_certificates")
from utils import load_environment
Lock(die=True).forever()
env = load_environment()
verbose = False