make reloader service start on reload

This commit is contained in:
Eugene Ware
2013-07-07 20:27:23 +10:00
parent ee40473a18
commit 1f4dab1fd8

View File

@@ -6,6 +6,11 @@ apt-get update
apt-get install -y nginx dnsutils
cat<<EOF > /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