The first solution is:
- Create the directory in /var/run
- Change the permissions
Not really.
After the next reboot, the directory is missing again and you have to go for the "first" solution again.
The right solution works like this:
Inside /usr/lib/tmpfiles.d create a myexample.conf file with this content:
To check if everything is ok run the following command:d /var/run/myexample 0755 schroff schroff -
and you will see:systemd-tmpfiles --create myexample.conf
And this directory will be created with each reboot...# ls -l /var/run/ |grep mxexample drwxr-xr-x 2 schroff schroff 40 19. Sep 22:45 myexample
No comments:
Post a Comment