tlp, final fixes for Devuan with runit.
This commit is contained in:
@@ -129,12 +129,9 @@
|
||||
and ansible_pkg_mgr == "apt"
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | runit | Enable + Start
|
||||
shell: |
|
||||
if [[ ! -e {{ runit_service_dir }}/{{ tlp_service }} &&
|
||||
-e {{ runit_script_dir }}/{{ tlp_service }} ]]; then
|
||||
ln -s {{ runit_script_dir }}/{{ tlp_service }} {{ runit_service_dir }}
|
||||
fi
|
||||
sv tlp start
|
||||
executable: "{{ bash_exec.stdout }}"
|
||||
command: "{{ item }}"
|
||||
loop:
|
||||
- "ln -sf {{ runit_script_dir }}/{{ tlp_service }} {{ runit_service_dir }}/{{ tlp_service }}"
|
||||
- "sv start {{ tlp_service }}"
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user