fgci-org / ansible-role-slurm

For installing and configuring SLURM - Simple Linux Utility for Resource Management
MIT License
35 stars 15 forks source link

kill -SIGUSR2 for logrotate #91

Closed martbhell closed 6 years ago

martbhell commented 6 years ago

https://slurm.schedmd.com/SLUG17/Roadmap.pdf says to use SIGUSR2 instead of HUP. This only works with SLURM 17.11.

HUP runs a reconfigure which can cause performance issues.

Additionally, before this commit the kill command was:

/bin/kill -HUP cat /var/run/slurmctld.pid 2>/dev/null 2> /dev/null || true

Running that command directly does not seem to work (and errors are hidden by the stdout/stderr redirections):

kill: cannot find process "cat"
kill: cannot find process "/var/run/slurmctld.pid"

So put the cat inside a $()