How about this:

```ruby
restart_service if new_resource.restart_on_update and run_script.updated_by_last_action?
```