auto-cpufreq/scripts/auto-cpufreq.service
Velimir Iveljic 6d7c7a7495 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.
2020-01-04 19:36:20 +01:00

13 lines
345 B
Desktop File

[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
User=root
ExecStart=/usr/bin/python3 /usr/bin/auto-cpufreq --daemon
StandardOutput=file:/var/log/auto-cpufreq.log
[Install]
WantedBy=multi-user.target