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