Remove socket file before listening for reload

This commit is contained in:
Eugene Ware
2013-07-07 20:17:19 +10:00
parent ea14fb0543
commit ee40473a18

View File

@@ -7,6 +7,7 @@ apt-get install -y nginx dnsutils
cat<<EOF > /etc/init/nginx-reloader.conf
script
rm -rf /home/git/reload-nginx
echo | sudo -u git nc -l -U /home/git/reload-nginx && /etc/init.d/nginx reload
end script
respawn