Change override.pickle location + add to snap

This commit is contained in:
Adnan Hodzic 2023-02-02 17:18:58 +01:00
parent 2bfe71e8d8
commit 69ef913c1b
2 changed files with 8 additions and 4 deletions

View File

@ -59,7 +59,7 @@ auto_cpufreq_stats_path = None
auto_cpufreq_stats_file = None
# track governor override
STORE = "/opt/auto-cpufreq/venv/override.pickle"
STORE = "/opt/auto-cpufreq/override.pickle"
if os.getenv("PKG_MARKER") == "SNAP":
auto_cpufreq_stats_path = Path("/var/snap/auto-cpufreq/current/auto-cpufreq.stats")

View File

@ -43,6 +43,10 @@ plugs:
interface: system-files
write:
- /etc/auto-cpufreq.conf
opt-auto-cpufreq:
interface: system-files
write:
- /opt/auto-cpufreq/override.pickle
apps:
auto-cpufreq:
@ -56,15 +60,15 @@ apps:
- cpu-control
- system-observe
- hardware-observe
- etc-auto-cpufreq-conf
- opt-auto-cpufreq
service:
command: usr/bin/snapdaemon
plugs:
- cpu-control
- system-observe
- hardware-observe
- etc-auto-cpufreq-conf
- etc-auto-cpufreq
- opt-auto-cpufreq
environment:
LC_ALL: C.UTF-8
LANG: C.UTF-8