aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-08-08 10:12:44 +0100
committerGareth Rees <gareth@mysociety.org>2014-08-21 17:38:19 +0100
commit70a7f15a2827ead6a406e1bb4c93b986782d58fe (patch)
treeedf3652f17935295899596eae3f62056fe67c7ba
parent20abfbc8ae03c08eebb48c9316309c3650c0655e (diff)
Instructions to generate alaveteli-purge-varnish
-rw-r--r--docs/installing/manual_install.md22
1 files changed, 21 insertions, 1 deletions
diff --git a/docs/installing/manual_install.md b/docs/installing/manual_install.md
index b63a137f4..68e3eff6b 100644
--- a/docs/installing/manual_install.md
+++ b/docs/installing/manual_install.md
@@ -556,9 +556,29 @@ and not required if you choose not to run your site behind Varnish (see below).
* `daemon_name`: The name of the daemon. Set this to `purge-varnish`.
* `vhost_dir`: the full path to the directory where alaveteli is checked out.
e.g. If your checkout is at `/var/www/alaveteli` then set this to `/var/www`
+* `vcspath`: the name of the directory that contains the alaveteli code.
+ e.g. `alaveteli`
+* `site`: a string to identify your alaveteli instance
* `user`: the user that the software runs as
-This template does not yet have a rake task to generate it.
+There is a rake task that will help to rewrite this file into one that is
+useful to you. Change the variables to suit your installation.
+
+ pushd /var/www/alaveteli
+ bundle exec rake config_files:convert_init_script \
+ DEPLOY_USER=alaveteli \
+ VHOST_DIR=/var/www \
+ VCSPATH=alaveteli \
+ SITE=alaveteli \
+ SCRIPT_FILE=/var/www/alaveteli/config/purge-varnish-debian.ugly > /etc/init.d/alaveteli-purge-varnish
+ popd
+
+ chown root:alaveteli /etc/init.d/alaveteli-purge-varnish
+ chmod 754 /etc/init.d/alaveteli-purge-varnish
+
+Start the alert tracks daemon:
+
+ service alaveteli-purge-varnish start
### Init script permissions