- daemon.py can be easily executable
- also need to rename it in __main__
if [ -z "${CHECK}" ]
then
echo "$0: Daemon isn't running, starting in background ..."
- screen -dmS daemon python3 daemon.py
+ screen -dmS daemon ./daemon.py
fi
+#!/usr/bin/python3
+# -*- coding: utf-8 -*-
+
# Fedi API Block - An aggregator for fetching blocking data from fediverse nodes
# Copyright (C) 2023 Free Software Foundation
#
})
if __name__ == "__main__":
- uvicorn.run("api:router", host=config.get("host"), port=config.get("port"), log_level=config.get("log_level"))
+ uvicorn.run("daemon:router", host=config.get("host"), port=config.get("port"), log_level=config.get("log_level"))