Do not start apache right after package installation

Default configuration for apache from package may
differ from ours, e.g. when we use prefork mod but
default is event. This requires restart of apache
service but it is configured to do reload if it is
already running.

PROD-32544

Change-Id: I0e8adf3d8996e3d6bcda702a4b4ea4f3b94ccf56
diff --git a/apache/server/service/init.sls b/apache/server/service/init.sls
index ae634d1..2d7e46e 100644
--- a/apache/server/service/init.sls
+++ b/apache/server/service/init.sls
@@ -14,9 +14,25 @@
 - apache.server.service.mpm
 {%- endif %}
 
+apache_policy-rc.d_present:
+  file.managed:
+    - name: /usr/sbin/policy-rc.d
+    - mode: 755
+    - contents: |
+        #!/bin/sh
+        exit 101
+
 apache_packages:
   pkg.installed:
   - names: {{ server.pkgs }}
+  - require:
+    - file: apache_policy-rc.d_present
+
+apache_policy-rc.d_absent:
+  file.absent:
+    - name: /usr/sbin/policy-rc.d
+    - require:
+      - pkg: apache_packages
 
 apache_ports_config:
   file.managed: