mirror of
https://github.com/dokku/dokku.git
synced 2025-12-28 16:06:40 +01:00
make reloader service start on reload
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user