# checkbox sru - Run CheckBox SRU tests after booting 
#
# Run SRU testing with CheckBoxNG 60 seconds after networking
# has started to wait for DHCP to complete.

description     "CheckBox SRU"

# Make sure we start after networking
start on runlevel [2345]

stop on runlevel [!023456]

task

emits checkbox-sru-finished

pre-start script
  checkbox check-config || exit 1
  mkdir -p /var/cache/plainbox
end script

exec /usr/bin/checkbox sru

post-stop script
    initctl emit checkbox-sru-finished
end script
