Skip to content

Commit

Permalink
Change override.pickle location + add to snap
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnanHodzic committed Feb 2, 2023
1 parent 2bfe71e commit 69ef913
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion auto_cpufreq/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
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")
Expand Down
10 changes: 7 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 69ef913

Please sign in to comment.