Remove socket file before listening for reload

This commit is contained in:
Eugene Ware committed 2013-07-07 20:17:19 +10:00
1 parent ea14fb0543
commit ee40473a18
1 file changed
+1
+1
View File
@@ -7,6 +7,7 @@ apt-get install -y nginx dnsutils
cat<<EOF > /etc/init/nginx-reloader.conf cat<<EOF > /etc/init/nginx-reloader.conf
script script
rm -rf /home/git/reload-nginx
echo | sudo -u git nc -l -U /home/git/reload-nginx && /etc/init.d/nginx reload echo | sudo -u git nc -l -U /home/git/reload-nginx && /etc/init.d/nginx reload
end script end script
respawn respawn