lib/capistrano/tasks/foreman.rb in capistrano-foreman-1.3.0 vs lib/capistrano/tasks/foreman.rb in capistrano-foreman-1.4.0

- old
+ new

@@ -20,9 +20,13 @@ foreman_exec :foreman, 'export', fetch(:foreman_init_system), fetch(:foreman_export_path), opts.map { |opt, value| "--#{opt}=\"#{value}\"" }.join(' ') end + + if fetch(:foreman_init_system) == 'systemd' + foreman_exec :systemctl, :'daemon-reload' + end end end desc 'Start the application services' task :start do