See "man tmpfiles.d". When using systemd, volatile files in /run or cleaned up.
In fedora 17, /run is linked to /var/lock where ock locks are. Fedora has a /usr/lib/tmpfiles.d/opencryptoki.conf with
D /var/lock/opencryptoki 0770 root pkcs11 -
but this was wiping out the subdirs on reboot and not adding them back.
Need to perhaps create a file in tmpfiles.d and includeD /var/lock/opencryptoki 0770 root pkcs11 -
d /var/lock/opencryptoki/ccatok 0770 root pkcs11 -
d /var/lock/opencryptoki/swtok 0770 root pkcs11 -
d /var/lock/opencryptoki/lite 0770 root pkcs11 -
Need to dtermine best way to approach this....