<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - systemctl start hangs for SysVinit script with multiple pid files"
href="https://bugs.freedesktop.org/show_bug.cgi?id=85297">85297</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>systemctl start hangs for SysVinit script with multiple pid files
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dgloe@cray.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>The slurm init script can start multiple daemons, so it has multiple pid files
listed.
# processname: /opt/slurm/14.11.0-1.0000.44f7451.73.13.ari/sbin/slurmd
# pidfile: /var/run/slurmd.pid
#
# processname: /opt/slurm/14.11.0-1.0000.44f7451.73.13.ari/sbin/slurmctld
# pidfile: /var/run/slurmctld.pid
If slurm is configured so only slurmd starts on the node, systemctl start
slurm.service hangs even though slurmd is running and /var/run/slurmd.pid
exists; I believe because it's looking for the slurmctld pid file.
If the second pidfile line is removed then systemctl start slurm.service
completes successfully, but that breaks nodes where slurmctld is started.
If slurmd is configured to write its pid to /var/run/slurmctld.pid then
systemctl start slurm.service completes successfully, but that means slurmctld
and slurmd can't run on the same node.
nid00059:~ # systemctl --version
systemd 210
+PAM +LIBWRAP +AUDIT +SELINUX -IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ
+SECCOMP +APPARMOR</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>