Sorry for this really newbie question, but I'm having the darndest time
getting the log/err/pid files where I want them. First off, I'm running
FreeBSD 4.2.

File permissions on mathopd are 555 root.wheel. But files
created by mathopd are daemon.wheel. I think that's something to do with
BSD's rc.d system.

That aside, I'd like to put the pid file with other pids in /var/run which
has permissions of 775 root.wheel. My question is, if I'm a member of
wheel and have no problems creating files in /var/run, why does mathopd? I
get the error on startup:

/usr/local/sbin/mathopd: Cannot open PID file
open: Permission denied

If I create a directory /var/run/mathopd and chown it daemon.wheel,
placing the files in there works fine. I looked through the code, and
I'm also a little iffy about DEFAULT_FILEMODE, which is set 0666. When
the pid file get's created it's as 640.  What am I missing?

Thanks for any help in advance,
David Mentis

Reply via email to