Revamp of writing daemon service logs for snap envs (Close: #53, #82)

This commit is contained in:
Adnan Hodzic 2020-09-02 16:33:57 +02:00
parent 3f670da926
commit 566fd4a7bf
2 changed files with 8 additions and 3 deletions

4
scripts/snapdaemon.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
#
# workaround for running Daemon without polluting syslog (#53, #82)
$SNAP/bin/auto-cpufreq --daemon 2>&1 >> $SNAP_DATA/auto-cpufreq.log

View File

@ -1,6 +1,6 @@
name: auto-cpufreq name: auto-cpufreq
base: core20 base: core20
version: '1.2.2' version: '1.2.3'
summary: Automatic CPU speed & power optimizer for Linux summary: Automatic CPU speed & power optimizer for Linux
description: | description: |
Automatic CPU speed & power optimizer for Linux based on active Automatic CPU speed & power optimizer for Linux based on active
@ -24,11 +24,12 @@ parts:
- lm-sensors - lm-sensors
source: . source: .
deploy-cpufrectl: deploy-scripts:
plugin: dump plugin: dump
source: scripts source: scripts
organize: organize:
cpufreqctl.sh: usr/bin/cpufreqctl cpufreqctl.sh: usr/bin/cpufreqctl
snapdaemon.sh: usr/bin/snapdaemon
apps: apps:
auto-cpufreq: auto-cpufreq:
@ -43,7 +44,7 @@ apps:
PKG_MARKER: SNAP PKG_MARKER: SNAP
service: service:
command: bin/auto-cpufreq --daemon 2>&1 | tee -a $SNAP_DATA/auto-cpufreq.log command: usr/bin/snapdaemon
plugs: plugs:
- cpu-control - cpu-control
- system-observe - system-observe