vdev icon indicating copy to clipboard operation
vdev copied to clipboard

Small nuisance with /run/vdev

Open onimatrix81 opened this issue 10 years ago • 4 comments

In /etc/vdev/vdevd.conf I left pidfile to be written to /run/vdev/vdev.pid. As good of a file as any afaik. Whose responsibility however is it to create the directory, because vdevd just errors out if it doesn't exist?

onimatrix81 avatar Aug 22 '15 06:08 onimatrix81

this is a good behavior across *nix daemons, creating non existing directories may introduce security rirks. It is the responsibility of the caller to create them.

jaromil avatar Aug 22 '15 13:08 jaromil

Agreed, I have no problems with initscripts creating directories.

fbt avatar Aug 22 '15 14:08 fbt

@onimatrix81 The init script should make /run/vdev. Looks like the included init script does not do this; I just pushed a patch to make it do so.

jcnelson avatar Aug 23 '15 02:08 jcnelson

Yeah jcnelson. Heh, I had no idea about that. It was "an issue" when I kept starting vdevd manually. My OpenRC init script does this too as Jaromil abd fbt cleared it out that this was desired behaviour.

onimatrix81 avatar Aug 27 '15 09:08 onimatrix81