vdev with the new tmpdirs feature
This commit is contained in:
parent
b980138f40
commit
d68f7bafbe
12
init.d/vdevd
12
init.d/vdevd
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user