1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Close #1483: remove postfix's /queue/pid/master.pid

This commit is contained in:
Florent Daigniere 2022-11-27 09:56:04 +01:00
parent b49d9ce243
commit 86edc3a919
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,8 @@ from socrate import system, conf
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))
os.system("flock -n /queue/pid/master.pid rm /queue/pid/master.pid")
def start_podop():
os.setuid(getpwnam('postfix').pw_uid)
os.makedirs('/dev/shm/postfix',mode=0o700, exist_ok=True)

View File

@ -0,0 +1 @@
Remove postfix's master.pid on startup if there is no other instance running