diff options
| author | suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> | 2023-05-21 00:07:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-20 15:07:09 -0700 |
| commit | cad2babbca0e3c5b509a81bc967e309e72ccd15a (patch) | |
| tree | be772688bd3cef0894dc4f89cfa8ea151d675ec5 /backend/localplatform.py | |
| parent | dbd1ea954391d7961f5923bad2247710e40c43d0 (diff) | |
| download | decky-loader-cad2babbca0e3c5b509a81bc967e309e72ccd15a.tar.gz decky-loader-cad2babbca0e3c5b509a81bc967e309e72ccd15a.zip | |
Add env var to not replace systemd service file (#462)
Diffstat (limited to 'backend/localplatform.py')
| -rw-r--r-- | backend/localplatform.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/localplatform.py b/backend/localplatform.py index a788d59f..5febfcaf 100644 --- a/backend/localplatform.py +++ b/backend/localplatform.py @@ -32,7 +32,10 @@ def get_server_port() -> int: return int(os.getenv("SERVER_PORT", "1337")) def get_live_reload() -> bool: - os.getenv("LIVE_RELOAD", "1") == "1" + return os.getenv("LIVE_RELOAD", "1") == "1" + +def get_keep_systemd_service() -> bool: + return os.getenv("KEEP_SYSTEMD_SERVICE", "0") == "1" def get_log_level() -> int: return {"CRITICAL": 50, "ERROR": 40, "WARNING": 30, "INFO": 20, "DEBUG": 10}[ |
