# (Un)lock all encrypted devices from /etc/crypttab
# Main orchestrator service - runs as a process to stay "started"

type = scripted
command = /etc/dinit.d/cryptsetup.sh start
stop-command = /etc/dinit.d/cryptsetup.sh stop
restart = false
logfile = /var/log/dinit-cryptsetup.log
logfile-permissions = 644
start-timeout = 300 # Allow time for passphrase entry
options: skippable
options: starts-on-console

depends-on: udevd
depends-on: modules
depends-on: rootrw
waits-for: udev-settle
after: rootfscheck
