1. Christian Theune
  2. sprintsite

Commits

Christian Theune  committed adcc99a

Reload nginx if a config file changed.

  • Participants
  • Parent commits 7e617e9
  • Branches default

Comments (0)

Files changed (1)

File components/nginx/component.py

View file
  • Ignore whitespace
             self += File(
                 '/etc/nginx/local/%s' % os.path.basename(f.path),
                 source=f.path)
+
+    def verify(self):
+        self.assert_no_subcomponent_changes()
+
+    def update(self):
+        self.cmd('sudo /etc/init.d/nginx reload')