From ea2c868a9d8a768790762a7dd265d002a94fc061 Mon Sep 17 00:00:00 2001 From: Adnan Hodzic Date: Thu, 6 Feb 2020 19:58:03 +0100 Subject: [PATCH] enable snap service by default + name change --- bin/auto-cpufreq | 1 - snap/snapcraft.yaml | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/auto-cpufreq b/bin/auto-cpufreq index 024de77..fc16131 100755 --- a/bin/auto-cpufreq +++ b/bin/auto-cpufreq @@ -76,7 +76,6 @@ def main(monitor, live, daemon, install, log): elif install: if os.getenv('PKG_MARKER') == "SNAP": os.environ["DAEMON"] = "ENABLED" - print(os.environ["DAEMON"]) running_check() root_check() gov_check() diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 48cd7e4..61b40be 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -31,13 +31,12 @@ apps: LC_ALL: C.UTF-8 LANG: C.UTF-8 PKG_MARKER: SNAP - DAEMON: DISABLED - auto-cpufreq-service: + service: command: bin/auto-cpufreq --daemon 2>&1 | tee -a /var/log/auto-cpufreq.log environment: LC_ALL: C.UTF-8 LANG: C.UTF-8 PKG_MARKER: SNAP - DAEMON: DISABLED + DAEMON: ENABLED daemon: simple \ No newline at end of file