I've almost completed automating the installation and configuration of apache2 across our infrastructure, but am hung up on an intermittent issue where apache does not restart when I ask it to.
I'm installing apache via AMT get; copying across files including ports.conf, apache2.conf and the default site; then calling within my script:
...
/etc/init.d/apache2 restart
...
I'm expecting apache to be listening on 443 ONLY when all's said and done, but it's intermittently still bound to port 80. Does anyone have any ideas as to how I can guarantee the restart?