added install files
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user