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
|
#!/usr/bin/env watchman
|
||||||
|
|
||||||
vdevd_dev='/dev'
|
|
||||||
vdevd_rundir='/run/vdev'
|
|
||||||
|
|
||||||
#service_respawn='true'
|
#service_respawn='true'
|
||||||
service_command='/usr/bin/vdevd'
|
service_command='/usr/bin/vdevd'
|
||||||
service_args="-f $vdevd_dev"
|
service_args='-f /dev'
|
||||||
|
service_tmpdirs=( '/run/vdev' )
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
mkdir -p "$vdevd_rundir"
|
if ! [[ -h /run/udev ]]; then
|
||||||
"$service_command" -1 "$vdevd_dev"
|
ln -s /dev/metadata/udev /run/udev
|
||||||
|
fi
|
||||||
|
|
||||||
watchman.start
|
watchman.start
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user