mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-23 05:34:55 +02:00
Create logfile before starting the deamon
- on SELinux enabled systems, the daemon fails to start unless the logfile is already present, because the systemd unit file redirects the STDOUT to a file.
This commit is contained in:
parent
f824dcf0e1
commit
9bfcc9f97a
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user