deploy unified (across distirbutions) systemd unit file (issue: #12)

This commit is contained in:
Adnan Hodzic 2020-01-07 18:46:51 +01:00
parent d7f7225407
commit 3b54f949b0
3 changed files with 4 additions and 4 deletions

View File

@ -76,9 +76,6 @@ def deploy():
print("\n* Deploy auto-cpufreq remove script")
os.system("cp scripts/auto-cpufreq-remove.sh /usr/bin/auto-cpufreq-remove")
print("\n* Deploy auto-cpufreq systemd unit file")
os.system("cp scripts/auto-cpufreq.service /usr/lib/systemd/system/auto-cpufreq.service")
# run auto-cpufreq daemon deploy script
s.call("/usr/bin/auto-cpufreq-install", shell=True)

View File

@ -14,6 +14,9 @@ fi
# this is needed on SELinux enabled systems (see also ConditionPathExists in .service)
touch /var/log/auto-cpufreq.log
echo -e "\n* Deploy auto-cpufreq systemd unit file"
cp scripts/auto-cpufreq.service /etc/systemd/system/auto-cpufreq.service
echo -e "\n* Reloading systemd manager configuration"
systemctl daemon-reload

View File

@ -18,7 +18,7 @@ echo -e "\n* Disabling auto-cpufreq daemon (systemd) at boot"
systemctl disable auto-cpufreq
echo -e "\n* Removing auto-cpufreq daemon (systemd) unit file"
rm /usr/lib/systemd/system/auto-cpufreq.service
rm /etc/systemd/system/auto-cpufreq.service
echo -e "\n* Reloading systemd manager configuration"
systemctl daemon-reload