Skip to content
Snippets Groups Projects
dmraid 349 B
[main]
@type = oneshot
@name = dmraid
@description = "dmraid activation"
@user = ( root )
@options = ( env )

[start]
@build = auto
@execute = ( 
foreground
{
	if -nt { s6-test -d ${mk_dir} }
	s6-mkdir -p -m 1777 ${mk_dir}
}
execl-cmdline -s { dmraid ${cmd_args} } )

[environment]
cmd_args=!--ignorelocking --activate y -Z
mk_dir=!/run/lock/dmraid