added install files
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
<displayVersion>1.0.0</displayVersion>
|
||||
<publisher>Martin Reurekas</publisher>
|
||||
<email>martin@semrks.nl</email>
|
||||
<coreIdFilePath>/home/martin/dev/cpu_governor_auto_adjust/triggers/.data/core_id_file</coreIdFilePath>
|
||||
<tokenFilePath>/home/martin/dev/cpu_governor_auto_adjust/triggers/.data/token_file</tokenFilePath>
|
||||
<coreIdFilePath>/home/martin/dev/cpu_governor_auto_adjust/cpu_governor_auto_adjust/triggers/.data/core_id_file</coreIdFilePath>
|
||||
<tokenFilePath>/home/martin/dev/cpu_governor_auto_adjust/cpu_governor_auto_adjust/triggers/.data/token_file</tokenFilePath>
|
||||
</customConfig>
|
||||
</trigger>
|
||||
</triggers>
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=CPU Governor Auto Adjust service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory=/opt/cpu_governor_auto_adjust
|
||||
ExecStart=/opt/cpu_governor_auto_adjust/start.sh
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
Environment="PATH=/opt/cpu_governor_auto_adjust/.venv/bin"
|
||||
StandardOutput=append:/var/log/cpu_governor_auto_adjust.log
|
||||
StandardError=append:/var/log/cpu_governor_auto_adjust.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
source /opt/cpu_governor_auto_adjust/.venv/bin/activate
|
||||
exec cpu_governor_auto_adjust -c /opt/cpu_governor_auto_adjust/cpu_governor_auto_adjust.xml
|
||||
+1
-6
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "cpu_governor_auto_adjust"
|
||||
version = "0.1.10"
|
||||
version = "0.1.11"
|
||||
description = "This application has been developed to automatically change cpu governor based on certain triggers."
|
||||
authors = [
|
||||
{ name = "Martin Reurekas", email = "martin@semrks.nl" }
|
||||
@@ -22,11 +22,6 @@ dev = [
|
||||
"mypy"
|
||||
]
|
||||
|
||||
docs = [
|
||||
"sphinx",
|
||||
"sphinx-rtd-theme"
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
cpu_governor_auto_adjust = "cpu_governor_auto_adjust.cpu_governor_auto_adjust:main"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user