From 647cba3cf508f0a3a88c8416a551328dc117ad36 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 29 Nov 2023 15:51:12 -0500 Subject: [PATCH] Expand startup width for new daemon name --- api-daemon/pvcapid/Daemon.py | 30 +++++++++++----------- health-daemon/pvchealthd/Daemon.py | 40 +++++++++++++++--------------- node-daemon/pvcnoded/Daemon.py | 40 +++++++++++++++--------------- 3 files changed, 55 insertions(+), 55 deletions(-) diff --git a/api-daemon/pvcapid/Daemon.py b/api-daemon/pvcapid/Daemon.py index 781914ce..557c3337 100755 --- a/api-daemon/pvcapid/Daemon.py +++ b/api-daemon/pvcapid/Daemon.py @@ -225,25 +225,25 @@ def entrypoint(): # Print our startup messages print("") - print("|------------------------------------------------------------|") - print("| |") - print("| ███████████ ▜█▙ ▟█▛ █████ █ █ █ |") - print("| ██ ▜█▙ ▟█▛ ██ |") - print("| ███████████ ▜█▙ ▟█▛ ██ |") - print("| ██ ▜█▙▟█▛ ███████████ |") - print("| |") - print("|------------------------------------------------------------|") - print("| Parallel Virtual Cluster API daemon v{0: <21} |".format(version)) - print("| Debug: {0: <51} |".format(str(config["debug"]))) - print("| API version: v{0: <44} |".format(API_VERSION)) + print("|--------------------------------------------------------------|") + print("| |") + print("| ███████████ ▜█▙ ▟█▛ █████ █ █ █ |") + print("| ██ ▜█▙ ▟█▛ ██ |") + print("| ███████████ ▜█▙ ▟█▛ ██ |") + print("| ██ ▜█▙▟█▛ ███████████ |") + print("| |") + print("|--------------------------------------------------------------|") + print("| Parallel Virtual Cluster API daemon v{0: <23} |".format(version)) + print("| Debug: {0: <53} |".format(str(config["debug"]))) + print("| API version: v{0: <46} |".format(API_VERSION)) print( - "| Listen: {0: <50} |".format( + "| Listen: {0: <52} |".format( "{}:{}".format(config["listen_address"], config["listen_port"]) ) ) - print("| SSL: {0: <53} |".format(str(config["ssl_enabled"]))) - print("| Authentication: {0: <42} |".format(str(config["auth_enabled"]))) - print("|------------------------------------------------------------|") + print("| SSL: {0: <55} |".format(str(config["ssl_enabled"]))) + print("| Authentication: {0: <44} |".format(str(config["auth_enabled"]))) + print("|--------------------------------------------------------------|") print("") pvc_api.celery_startup() diff --git a/health-daemon/pvchealthd/Daemon.py b/health-daemon/pvchealthd/Daemon.py index 39a740fc..bffe8805 100644 --- a/health-daemon/pvchealthd/Daemon.py +++ b/health-daemon/pvchealthd/Daemon.py @@ -54,26 +54,26 @@ def entrypoint(): # Print our startup message logger.out("") - logger.out("|------------------------------------------------------------|") - logger.out("| |") - logger.out("| ███████████ ▜█▙ ▟█▛ █████ █ █ █ |") - logger.out("| ██ ▜█▙ ▟█▛ ██ |") - logger.out("| ███████████ ▜█▙ ▟█▛ ██ |") - logger.out("| ██ ▜█▙▟█▛ ███████████ |") - logger.out("| |") - logger.out("|------------------------------------------------------------|") - logger.out("| Parallel Virtual Cluster health daemon v{0: <18} |".format(version)) - logger.out("| Debug: {0: <51} |".format(str(config["debug"]))) - logger.out("| FQDN: {0: <52} |".format(config["node_fqdn"])) - logger.out("| Host: {0: <52} |".format(config["node_hostname"])) - logger.out("| ID: {0: <54} |".format(config["node_id"])) - logger.out("| IPMI hostname: {0: <43} |".format(config["ipmi_hostname"])) - logger.out("| Machine details: |") - logger.out("| CPUs: {0: <50} |".format(config["static_data"][0])) - logger.out("| Arch: {0: <50} |".format(config["static_data"][3])) - logger.out("| OS: {0: <52} |".format(config["static_data"][2])) - logger.out("| Kernel: {0: <48} |".format(config["static_data"][1])) - logger.out("|------------------------------------------------------------|") + logger.out("|--------------------------------------------------------------|") + logger.out("| |") + logger.out("| ███████████ ▜█▙ ▟█▛ █████ █ █ █ |") + logger.out("| ██ ▜█▙ ▟█▛ ██ |") + logger.out("| ███████████ ▜█▙ ▟█▛ ██ |") + logger.out("| ██ ▜█▙▟█▛ ███████████ |") + logger.out("| |") + logger.out("|--------------------------------------------------------------|") + logger.out("| Parallel Virtual Cluster health daemon v{0: <20} |".format(version)) + logger.out("| Debug: {0: <53} |".format(str(config["debug"]))) + logger.out("| FQDN: {0: <54} |".format(config["node_fqdn"])) + logger.out("| Host: {0: <54} |".format(config["node_hostname"])) + logger.out("| ID: {0: <56} |".format(config["node_id"])) + logger.out("| IPMI hostname: {0: <45} |".format(config["ipmi_hostname"])) + logger.out("| Machine details: |") + logger.out("| CPUs: {0: <52} |".format(config["static_data"][0])) + logger.out("| Arch: {0: <52} |".format(config["static_data"][3])) + logger.out("| OS: {0: <54} |".format(config["static_data"][2])) + logger.out("| Kernel: {0: <50} |".format(config["static_data"][1])) + logger.out("|--------------------------------------------------------------|") logger.out("") logger.out(f'Starting pvchealthd on host {config["node_fqdn"]}', state="s") diff --git a/node-daemon/pvcnoded/Daemon.py b/node-daemon/pvcnoded/Daemon.py index 49356afe..40962ef5 100644 --- a/node-daemon/pvcnoded/Daemon.py +++ b/node-daemon/pvcnoded/Daemon.py @@ -72,26 +72,26 @@ def entrypoint(): # Print our startup message logger.out("") - logger.out("|------------------------------------------------------------|") - logger.out("| |") - logger.out("| ███████████ ▜█▙ ▟█▛ █████ █ █ █ |") - logger.out("| ██ ▜█▙ ▟█▛ ██ |") - logger.out("| ███████████ ▜█▙ ▟█▛ ██ |") - logger.out("| ██ ▜█▙▟█▛ ███████████ |") - logger.out("| |") - logger.out("|------------------------------------------------------------|") - logger.out("| Parallel Virtual Cluster node daemon v{0: <20} |".format(version)) - logger.out("| Debug: {0: <51} |".format(str(config["debug"]))) - logger.out("| FQDN: {0: <52} |".format(config["node_fqdn"])) - logger.out("| Host: {0: <52} |".format(config["node_hostname"])) - logger.out("| ID: {0: <54} |".format(config["node_id"])) - logger.out("| IPMI hostname: {0: <43} |".format(config["ipmi_hostname"])) - logger.out("| Machine details: |") - logger.out("| CPUs: {0: <50} |".format(config["static_data"][0])) - logger.out("| Arch: {0: <50} |".format(config["static_data"][3])) - logger.out("| OS: {0: <52} |".format(config["static_data"][2])) - logger.out("| Kernel: {0: <48} |".format(config["static_data"][1])) - logger.out("|------------------------------------------------------------|") + logger.out("|--------------------------------------------------------------|") + logger.out("| |") + logger.out("| ███████████ ▜█▙ ▟█▛ █████ █ █ █ |") + logger.out("| ██ ▜█▙ ▟█▛ ██ |") + logger.out("| ███████████ ▜█▙ ▟█▛ ██ |") + logger.out("| ██ ▜█▙▟█▛ ███████████ |") + logger.out("| |") + logger.out("|--------------------------------------------------------------|") + logger.out("| Parallel Virtual Cluster node daemon v{0: <22} |".format(version)) + logger.out("| Debug: {0: <53} |".format(str(config["debug"]))) + logger.out("| FQDN: {0: <54} |".format(config["node_fqdn"])) + logger.out("| Host: {0: <54} |".format(config["node_hostname"])) + logger.out("| ID: {0: <56} |".format(config["node_id"])) + logger.out("| IPMI hostname: {0: <45} |".format(config["ipmi_hostname"])) + logger.out("| Machine details: |") + logger.out("| CPUs: {0: <52} |".format(config["static_data"][0])) + logger.out("| Arch: {0: <52} |".format(config["static_data"][3])) + logger.out("| OS: {0: <54} |".format(config["static_data"][2])) + logger.out("| Kernel: {0: <50} |".format(config["static_data"][1])) + logger.out("|--------------------------------------------------------------|") logger.out("") logger.out(f'Starting pvcnoded on host {config["node_fqdn"]}', state="s")