Commit Graph

12 Commits

Author SHA1 Message Date
bobslept 6e3f45182b
Implement python virtual environment (#326)
* 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>
2021-12-21 20:14:02 +01:00
Marco Vermeulen e87a32f6c9
Fix service unit file on Arch Linux (#190)
* Fix service unit file on arch.

* Remove duplication in installer script.

* Improve formatting of installer script bash code.
2021-03-14 19:23:06 +01:00
Marco Vermeulen 3b83706748
Fix location of auto-cpufreq in service descriptor. (#187) 2021-03-11 19:13:22 +01:00
Technical27 f3f652d69e
Improve logging (#148)
Now auto-cpufreq will write directly to the log file or stdout.
The file will automatically be cleared when on each refresh and on
startup.
2021-01-24 13:14:11 +01:00
Adnan Hodzic b2b28aadbd Fixed systemd "executable path is not absolute error" (close: #42) 2020-03-27 12:26:19 +01:00
Mert Can Demir 0ebdf0e09c Fix file log freezing issue (#40) 2020-02-16 13:24:14 +01:00
Adnan Hodzic e3b207795b improved daemon install/remove after setup.py install 2020-01-26 10:13:16 +01:00
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
Adnan Hodzic 4cbc608791 major code refactor and improvements 2020-01-03 16:27:41 +01:00
Adnan Hodzic 2490de007a systemd working with proper logging functionality 2020-01-03 14:09:07 +01:00
Adnan Hodzic aab5f17d9c code refinement (working systemd) without logs 2020-01-02 23:30:55 +01:00
Adnan Hodzic 84e0c6cfa1 added option to deploy and run auto-cpufreq as a service (daemon) 2020-01-02 01:49:01 +01:00