From 67ff7951ac43b01eb55811aef3d581cf6bb2b7f2 Mon Sep 17 00:00:00 2001 From: CVL-GitHub <jupiter.hu@monash.edu> Date: Tue, 22 Sep 2015 15:00:31 +1000 Subject: [PATCH] fixed centos 7 service restart --- roles/gpu/tasks/main.yml | 4 ++-- roles/slurm-common/templates/slurmlog.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/gpu/tasks/main.yml b/roles/gpu/tasks/main.yml index a08e9fb7..a8b27eb7 100644 --- a/roles/gpu/tasks/main.yml +++ b/roles/gpu/tasks/main.yml @@ -60,8 +60,8 @@ - name: restart_host command: shutdown -r now "Reboot triggered by Ansible" - async: 0 - poll: 0 + async: 900 + poll: 60 sudo: true ignore_errors: true when: has_been_compiled | failed diff --git a/roles/slurm-common/templates/slurmlog.j2 b/roles/slurm-common/templates/slurmlog.j2 index cbdace20..03ae9764 100644 --- a/roles/slurm-common/templates/slurmlog.j2 +++ b/roles/slurm-common/templates/slurmlog.j2 @@ -20,7 +20,7 @@ {% endif %} {% endif %} {% if ansible_os_family == 'RedHat' and ansible_distribution_version >= '7' %} - systemctl restart slurmd + systemctl restart slurmctld {% else %} postrotate /etc/init.d/slurm reconfig {% endif %} -- GitLab