Skip to content

Commit 9fc6e75

Browse files
committed
3.0 Enable cfn-hup for awsbatch
Signed-off-by: Yulei Wang <yuleiwan@amazon.com>
1 parent 6f15e51 commit 9fc6e75

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/default/parallelcluster_supervisord.conf.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
<% case node['cluster']['node_type'] -%>
44
<%# HeadNode -%>
55
<% when 'HeadNode' -%>
6-
<% if node['cluster']['scheduler'] == 'slurm' -%>
76
[program:cfn-hup]
87
command = bash -c "[ -f /etc/profile.d/proxy.sh ] && . /etc/profile.d/proxy.sh; <%= node['cluster']['cookbook_virtualenv_path'] %>/bin/python <%= node['cluster']['cookbook_virtualenv_path'] %>/bin/cfn-hup"
98
# The following are needed because cfn-hup starts as a daemon
109
exitcodes = 0
1110
autorestart = unexpected
1211
startsecs = 0
13-
12+
<% if node['cluster']['scheduler'] == 'slurm' -%>
1413
[program:clustermgtd]
1514
command = <%= node['cluster']['node_virtualenv_path'] %>/bin/clustermgtd
1615
user = <%= node['cluster']['cluster_admin_user'] %>

0 commit comments

Comments
 (0)