the `systemctl start` will block until runsvdir starts. If it returns
non-zero then we call setup_failed(). I think this is ok.

On Thu, Mar 21, 2013 at 2:51 PM, Sean Porter <notifications@github.com>wrote:

> In runit_scripts/sensu-ctl.rb:
>
> > @@ -116,6 +116,19 @@ def setup_runsvdir_sysvinit
> >    end
> >  end
> >
> > +def setup_runsvdir_systemd
> > +  if run_command("cp /usr/share/sensu/systemd/sensu-runsvdir.service /etc/systemd/system/sensu-runsvdir.service")
> > +    unless run_command("systemctl status sensu-runsvdir.service", 1, false)
>
> the upstart bits also do a "| grep stop" after this bit, to ensure it's
> running.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sensu/sensu-build/pull/41/files#r3480770>
> .
>