mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-11-11 09:20:05 +01:00
* Implement python virtual environment
* added venv instead of using system env pip
* adjusted the unit file to startup the app from the venv
* created a wrapper script to call the app from the venv
* extended cleanup for venv and additional scripts
* refactored the is_running() function to find the process now that it
is called from a venv
* remove update_service_file since we changed the binary path to the venv location
* fix bug in argument handling; upgrade pip before installing python packages
* fix bug in syntax
* Renamed auto-cpufreq wrapper
* Change permissions to use --stats as user
* Changed init scripts to use wrapper
Co-authored-by: aroundthfur <velimir@foolcontrol.org>
15 lines
389 B
Desktop File
15 lines
389 B
Desktop File
[Unit]
|
|
Description=auto-cpufreq - Automatic CPU speed & power optimizer for Linux
|
|
After=network.target network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
WorkingDirectory=/opt/auto-cpufreq/venv
|
|
Environment=PYTHONPATH=/opt/auto-cpufreq
|
|
ExecStart=/opt/auto-cpufreq/venv/bin/python /opt/auto-cpufreq/venv/bin/auto-cpufreq --daemon
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|