From 1f4dab1fd8cead6b103ddfe10998cd94dd916fcd Mon Sep 17 00:00:00 2001 From: Eugene Ware Date: Sun, 7 Jul 2013 20:27:23 +1000 Subject: [PATCH] make reloader service start on reload --- plugins/nginx-vhosts/install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/nginx-vhosts/install b/plugins/nginx-vhosts/install index f47dfa590..b99320665 100755 --- a/plugins/nginx-vhosts/install +++ b/plugins/nginx-vhosts/install @@ -6,6 +6,11 @@ apt-get update apt-get install -y nginx dnsutils cat< /etc/init/nginx-reloader.conf +description "Dokku nginx reloader service" + +start on runlevel [2345] +stop on runlevel [!2345] + script rm -rf /home/git/reload-nginx echo | sudo -u git nc -l -U /home/git/reload-nginx && /etc/init.d/nginx reload