deploy unified (across distirbutions) systemd unit file (issue: #12)
This commit is contained in:
parent
d7f7225407
commit
3b54f949b0
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue