Move startup code to an entrypoint function
Prevents further issues with startup.
This commit is contained in:
@@ -20,3 +20,5 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import pvcapid.Daemon # noqa: F401
|
import pvcapid.Daemon # noqa: F401
|
||||||
|
|
||||||
|
pvcapid.Daemon.entrypoint()
|
||||||
|
@@ -107,6 +107,7 @@ except Exception as e:
|
|||||||
# Entrypoint
|
# Entrypoint
|
||||||
##########################################################
|
##########################################################
|
||||||
|
|
||||||
|
def entrypoint():
|
||||||
import pvcapid.flaskapi as pvc_api # noqa: E402
|
import pvcapid.flaskapi as pvc_api # noqa: E402
|
||||||
|
|
||||||
if config['ssl_enabled']:
|
if config['ssl_enabled']:
|
||||||
|
Reference in New Issue
Block a user