Merge pull request #1 from aroundthfur/master

Create logfile before starting the deamon
This commit is contained in:
Adnan Hodzic 2020-01-04 20:36:11 +01:00 committed by GitHub
commit 0c27f6a1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -11,6 +11,9 @@ then
exit 1
fi
# this is needed on SELinux enabled systems (see also ConditionPathExists in .service)
touch /var/log/auto-cpufreq.log
echo -e "\n* Reloading systemd manager configuration"
systemctl daemon-reload

View File

@ -1,6 +1,7 @@
[Unit]
Description=auto-cpufreq - Automatic CPU speed & power optimizer for Linux
After=network.target network-online.target
ConditionPathExists=/var/log/auto-cpufreq.log
[Service]
Type=simple