first attempt

This commit is contained in:
Steve Hay
2022-09-05 17:21:46 -04:00
parent 91fc74b408
commit af54696b62
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
from daemon import app
app.logger.addHandler(utils.create_syslog_handler())
if __name__ == "__main__":
app.run(port=10222)
+2 -1
View File
@@ -99,7 +99,8 @@ export LANG=en_US.UTF-8
export LC_TYPE=en_US.UTF-8
source $venv/bin/activate
exec python $(pwd)/management/daemon.py
cd $(pwd)/management
exec gunicorn -b localhost:10222 -w 2 wsgi:app
EOF
chmod +x $inst_dir/start
cp --remove-destination conf/mailinabox.service /lib/systemd/system/mailinabox.service # target was previously a symlink so remove it first