mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
enable systemd-oomd
Further configuration tuning could be useful, but the Fedora defaults
provided by the AUR package seem reasonable. This successfully kills
runaway processes for me, tested by running:
$ systemd-run --user tail /dev/zero
Closes #111
This commit is contained in:
parent
8fd159f13f
commit
4a21cba4a1
3 changed files with 19 additions and 0 deletions
|
|
@ -94,6 +94,7 @@
|
|||
- { role: ripgrep, tags: ['ripgrep'] }
|
||||
- { role: zeal, tags: ['zeal'] }
|
||||
- { role: kdeconnect, tags: ['kdeconnect'] }
|
||||
- { role: oomd, tags: ['oomd'] }
|
||||
vars_prompt:
|
||||
- name: user_password
|
||||
prompt: "Enter desired user password"
|
||||
|
|
|
|||
3
roles/oomd/meta/main.yml
Normal file
3
roles/oomd/meta/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: systemd }
|
||||
15
roles/oomd/tasks/main.yml
Normal file
15
roles/oomd/tasks/main.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
- name: Install Fedora systemd-oomd configuration
|
||||
aur:
|
||||
name: systemd-oomd-defaults
|
||||
user: "{{ user.name }}"
|
||||
notify:
|
||||
- reload systemd config
|
||||
tags:
|
||||
- aur
|
||||
|
||||
- name: Enable and start systemd-oomd
|
||||
service:
|
||||
name: systemd-oomd.service
|
||||
enabled: yes
|
||||
state: started
|
||||
Loading…
Add table
Add a link
Reference in a new issue