I had a daemon that needed its own dir in /var/run
for its PID file with write permission granted to the daemon's user.
I found I could create this dir with these commands:
# mkdir /var/run/mydaemon
Then I could change its ownership to the user/group under which I wished to run the process:
# chown myuser:myuser /var/run/mydaemon
But this dir would be GONE whenever I issue a reboot! How do I get this dir to create every time the machine boots?