From 231a8b114cdb122f68539ccc6faa896acf66d306 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Tue, 12 May 2015 21:18:48 -0400 Subject: [PATCH] AWS: Don't use policy-rc.d to prevent starting daemons until we're ready It isn't required --- cluster/aws/templates/common.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/cluster/aws/templates/common.sh b/cluster/aws/templates/common.sh index 4c6b75146ab..67e73e0a7f3 100644 --- a/cluster/aws/templates/common.sh +++ b/cluster/aws/templates/common.sh @@ -66,19 +66,6 @@ install-salt() { fi done - # Based on - # https://major.io/2014/06/26/install-debian-packages-without-starting-daemons/ - # We do this to prevent Salt from starting the salt-minion - # daemon. The other packages don't have relevant daemons. (If you - # add a package that needs a daemon started, add it to a different - # list.) - cat > /usr/sbin/policy-rc.d <&2 -exit 101 -EOF - chmod 0755 /usr/sbin/policy-rc.d - for deb in "${DEBS[@]}"; do echo "== Installing ${deb}, ignore dependency complaints (will fix later) ==" dpkg --skip-same-version --force-depends -i "${deb}" @@ -91,8 +78,6 @@ EOF echo sleep 5 done - rm /usr/sbin/policy-rc.d - # Log a timestamp echo "== Finished installing Salt ==" }