I think what you'll want is more along the lines of prereq, which was
added for specifically this use case:
http://docs.saltstack.com/ref/states/requisites.html#prereq
Basic idea: prereq checks to see if an event is going to happen, and
perform an action beforehand (i.e., if a package will be upgraded,
stop the corresponding service first). Then you add a service watch to
the package upgrade, and you should be good to go.
> --
> You received this message because you are subscribed to the Google Groups
> "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
salt-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
--
"In order to create, you have to have the willingness, the desire to
be challenged, to be learning." -- Ferran Adria (speaking at Harvard,
2011)