Skip to content

Commit a2df3a4

Browse files
authored
Remove failing condition from slurmd.service (#134)
Comment out the ConditionPathExists from slurd.service. It appears that the condition is being checked before the file system is mounted. Add Requires for munged.service and remote-fs.service Could possibly add a requires on opt-slurm-{{ClusterName}}.mount. Resolves #133
1 parent 0d65483 commit a2df3a4

File tree

1 file changed

+6
-1
lines changed
  • source/resources/playbooks/roles/SlurmNodeAmi/templates/etc/systemd/system

1 file changed

+6
-1
lines changed

source/resources/playbooks/roles/SlurmNodeAmi/templates/etc/systemd/system/slurmd.service

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[Unit]
22
Description=Slurm node daemon
3+
Requires=munged.service remote-fs.target
34
After=munged.service network.target remote-fs.target
4-
ConditionPathExists={{SlurmEtcDir}}/slurm.conf
5+
# On CentOS 7 slurmd sometimes fails to start after reboot because of this condition.
6+
#ConditionPathExists={{SlurmEtcDir}}/slurm.conf
57

68
[Service]
79
Type=forking
@@ -15,5 +17,8 @@ LimitMEMLOCK=infinity
1517
LimitSTACK=infinity
1618
Delegate=yes
1719

20+
Restart=on-failure
21+
RestartSec=1
22+
1823
[Install]
1924
WantedBy=multi-user.target

0 commit comments

Comments
 (0)