#1074791 be_enabled only checks for init scripts and upstart services

#1074791#5
Date:
2024-07-03 09:58:30 UTC
From:
To:
varnish does not ship an init script anymore because it was a bugs
generator, but the varnish modules packages uses be_enabled in their
autopkgtests and now they fail because ruby-specinfra does not know
about systemd.

ruby-specinfra needs to support services which only have a systemd unit.

e.g.:

Failures:

  1) Service "varnish" is expected to be enabled
     Failure/Error: it { should be_enabled }
       expected Service "varnish" to be enabled
       /bin/sh -c ls\ /etc/rc3.d/\ \|\ grep\ --\ \'\^S..varnish\$\'\ \|\|\ grep\ \'\^\ \*start\ on\'\ /etc/init/varnish.conf

     # ./spec/varnish-modules/install_spec.rb:12:in `block (2 levels) in <top (required)>'

#1074791#10
Date:
2024-07-03 14:33:32 UTC
From:
To:
Wrong package, sorry...