Permalink
Browse files

add shell script suitable for passing user-data to gbrowse slave aws …

…instances
  • Loading branch information...
1 parent b09d578 commit c171d7faa31022fcd32e898b650329807ec93f1d @lstein lstein committed Oct 31, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −1 bin/gbrowse_launch_aws_slaves.pl
  2. +3 −0 bin/gbrowse_slave_start_aws.sh
@@ -130,7 +130,7 @@ sub adjust_spot_requests {
-instance_type => IMAGE_TYPE,
-instance_count => 1,
-security_group => SECURITY_GROUP,
- -user_data => "#!/bin/sh\n/opt/gbrowse/etc/init.d/gbrowse-slave start",
+ -user_data => "#!/bin/sh\nexec /opt/gbrowse/etc/init.d/gbrowse-slave start",
);
$_->add_tag(Requestor=>'gbrowse_launch_aws_slaves') foreach @requests;
push @potential_instances,@requests;
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec /opt/gbrowse/etc/init.d/gbrowse-slave start
+

0 comments on commit c171d7f

Please sign in to comment.