Verified Commit 5ff90378 authored by Evangelos Foutras's avatar Evangelos Foutras 🐱
Browse files

Do not reboot gemini if there are logged on users

This is done to avoid killing db-update and related processes.
parent 4986190a
......@@ -24,10 +24,22 @@
when: pgrep is succeeded
when: "'buildservers' in group_names"
- name: wait for svntogit to finish
wait_for:
path: /srv/svntogit/update-repos.sh.lock
state: absent
- name: gemini pre-reboot checks
block:
- name: wait for svntogit to finish
wait_for:
path: /srv/svntogit/update-repos.sh.lock
state: absent
- name: list logged on users
command: who
register: who
- name: abort reboot with logged on users
meta: end_host
when:
- who is changed
- who.stdout_lines|length > 1
when: inventory_hostname == "gemini.archlinux.org"
- name: reboot
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment