Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 367 Bytes

resource_before_notification_restart.md

File metadata and controls

13 lines (11 loc) · 367 Bytes

This example uses the :before notification to restart the php-fpm service before restarting nginx:

service 'nginx' do
  action :restart
  notifies :restart, 'service[php-fpm]', :before
end

With the :before notification, the action specified for the nginx resource will not run until action has been taken on the notified resource (php-fpm).