This commit is contained in:
2021-04-26 20:23:45 +02:00
parent eb8380fa5b
commit 87ac211e03
4 changed files with 24 additions and 11 deletions

View File

@@ -5,7 +5,7 @@ import os
import socket
import glob
import shutil
convert = lambda src, dst: open(dst, "w").write(jinja2.Template(open(src).read()).render(**os.environ))
# Actual startup script
@@ -33,6 +33,6 @@ convert("/conf/rsyslog.conf", "/etc/rsyslog.conf")
# Run postfix
if os.path.exists("/var/run/rsyslogd.pid"):
os.remove("/var/run/rsyslogd.pid")
os.system("/usr/lib/postfix/post-install meta_directory=/etc/postfix create-missing")
os.system("/usr/lib/postfix/master &")
os.system("/usr/libexec/postfix/post-install meta_directory=/etc/postfix create-missing")
os.system("/usr/sbin/postfix start")
os.execv("/usr/sbin/rsyslogd", ["rsyslogd", "-n"])