I noticed that letsencrypt client supplied from Ubuntu 14.04 standard repository lacks ‘pre-hook’/‘post-hook’ options when trying to renew in standalone mode. Not too convenient, I have to use various tricks to ensure that Web server has indeed stopped.
Is it possible to include the mentioned hooks options?
You can update to a more recent version of certbot (the new name of the client formerly known as letsencrypt) that supports pre/post hooks from this PPA, which is maintained by the same people who maintain certbot in Debian and Ubuntu proper: