vdev with the new tmpdirs feature

This commit is contained in:
Jack L. Frost 2015-08-22 18:11:57 +03:00
parent b980138f40
commit d68f7bafbe

View File

@ -1,14 +1,14 @@
#!/usr/bin/env watchman
vdevd_dev='/dev'
vdevd_rundir='/run/vdev'
#service_respawn='true'
service_command='/usr/bin/vdevd'
service_args="-f $vdevd_dev"
service_args='-f /dev'
service_tmpdirs=( '/run/vdev' )
start() {
mkdir -p "$vdevd_rundir"
"$service_command" -1 "$vdevd_dev"
if ! [[ -h /run/udev ]]; then
ln -s /dev/metadata/udev /run/udev
fi
watchman.start
}