anchor.diff:  <% end -%>
   
   %post
  -%if %{_with_systemd}
  +%if %{_systemd_el}
   %systemd_post <%= EZBake::Config[:project] %>.service
  -%else
  +%endif
  +%if %{_systemd_sles}
  +%service_add_post <%= EZBake::Config[:project] %>.service
  +%endif
  +%if %{_with_sysvinit}
   # If this is an install (as opposed to an upgrade)...
   if [ "$1" = "1" ]; then
     # Register the <%= EZBake::Config[:project] %> service
  
positive.code: %endif
  
  %postun
  %if %{_with_systemd}
  %systemd_postun_with_restart <%= EZBake::Config[:project] %>.service
  %else
  # Remove the rundir if this is an uninstall (as opposed to an upgrade)...
  if [ "$1" = "0" ]; then
      rm -rf %{_rundir}/%{name} || :
  
negative.code: %endif
  
  %preun
  %if %{_systemd_el}
  %systemd_preun <%= EZBake::Config[:project] %>.service
  %endif
  %if %{_systemd_sles}
  %service_del_preun <%= EZBake::Config[:project] %>.service
  %endif
  %if %{_with_sysvinit}
  # If this is an uninstall (as opposed to an upgrade) then
  #  we want to shut down and disable the service.
  if [ "$1" = "0" ] ; then
  