| Summary: | Default location of named.pid file assumes named is running as root | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | david <david> | ||||
| Component: | conf | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.1-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
david
2000-10-17 05:20:01 UTC
> Move the pid file into a subdirectory that can be chowned to bind: I like this idea. -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ david@mu.org writes: > Move the pid file into a subdirectory that can be chowned to bind: This does not help if named runs chrooted, which it should. (I have patches to make it run in a jail, BTW) DES -- Dag-Erling Smorgrav - des@ofug.org On Mon, Oct 16, 2000 at 09:17:12PM -0700, david@mu.org wrote: [Your message containted some very long lines, so I wrapped them] > Default location for named's pid file is /var/run, which is owned > by root. This conflicts with named when it is launched with -u > bind. Named is able to create /var/run/named.pid at startup, but > generates an error upon "ndc reload": According to the docs you can tell named where to put it's pid file by adding: pid-file "/var/run/named/named.pid"; to the "options" section of the config file. Changig the default location of the PID file is a bad idea as it will break lots of local scripts people have written. Is this option OK for what you want? (Bind docs are in /usr/src/contrib/bind/doc/) David. State Changed From-To: open->feedback As dwmalone asked, is the run-time option okay for what you wanted? State Changed From-To: feedback->closed Runtime directive is OK for relocating pid file. |