description "Runs the simlockd daemon to automatically lock the device if the SIM is changed"
author "Benjamin Pannell <contact@sierrasoftworks.com>"

start on startup
stop on simlockdcomplete
stop on stopping dbus
stop on shutdown

respawn
respawn limit 2 10

script
    if [ -d "/opt/simlock" ]; then
		exec simlock -d
		initctl emit simlockdcomplete
    else
	sleep 5
    fi
end script
