Re: [HACKERS] pid file for postmaster? - Mailing list pgsql-hackers

From Tim Holloway
Subject Re: [HACKERS] pid file for postmaster?
Date
Msg-id 383DAF7E.592909@southeast.net
Whole thread Raw
In response to Re: [HACKERS] pid file for postmaster?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Just playing Devil's Advocate.

Having to have root persmission to set up a system is more the rule than the exception,
though. Under Windows NT, for example, you can't create the registry keys except as
an administrator, even though unprivileged users will be setting the values.
Considering what having major DBMS installed could do to the system load, one could
even argue that ONLY an administrator should be allowed to install it!

But that's another issue entirely.....

Bruce Momjian wrote:
> 
> > Red Hat ALREADY creates a file "postmaster.pid" in the /var/lock directory.
> > I don't know how far the /var/lock convention goes across different platforms,
> > but I recommend using IT or its equivalent, I still have scars from my OS/2
> > days where every product put its goodies in a different place and you had to
> > guess where, how, and in what format.
> 
> Problem with that it is going to require root permission to create that
> file or directory if it doesn't exist.  I think we have to put it in the
> pgsql/data directory.  Sorry.
> 
> --
>   Bruce Momjian                        |  http://www.op.net/~candle
>   maillist@candle.pha.pa.us            |  (610) 853-3000
>   +  If your life is a hard drive,     |  830 Blythe Avenue
>   +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026


pgsql-hackers by date:

Previous
From: Dmitry Samersoff
Date:
Subject: Re: [HACKERS] pid file for postmaster?
Next
From: mascarm@mascari.com
Date:
Subject: Re: [HACKERS] Re: [PATCHES] ':' and ';' operators