make reloader service start on reload
This commit is contained in:
1 parent
ee40473a18
commit
1f4dab1fd8
1 file changed
+5
@@ -6,6 +6,11 @@ apt-get update
|
|||||||
apt-get install -y nginx dnsutils
|
apt-get install -y nginx dnsutils
|
||||||
|
|
||||||
cat<<EOF > /etc/init/nginx-reloader.conf
|
cat<<EOF > /etc/init/nginx-reloader.conf
|
||||||
|
description "Dokku nginx reloader service"
|
||||||
|
|
||||||
|
start on runlevel [2345]
|
||||||
|
stop on runlevel [!2345]
|
||||||
|
|
||||||
script
|
script
|
||||||
rm -rf /home/git/reload-nginx
|
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
|
||||||
|
|||||||
Reference in new issue
Block a user