Re: [HACKERS] Re: syslog logging setup broken?
Re: [HACKERS] Re: syslog logging setup broken?
От:
"Nic Ferrier" <nferrier@tapsellferrier.co.uk>
Дата:
>>> Bruce Momjian 04-Feb-01 10:07:40 PM >>> >> The bottom line is that, IMHO, writing a portable >> init.d style (or any other such concept) startup file >> that is ready for blind use is beyond practicality. >> It might be better to collect a few of the ones that are >> being used now (Red Hat-style, SuSE-style, Debian, >> *BSD-style) and ship them. This should be coordinated >>with the packagers, though. >Should I remove init.d from /contrib? I'm just a postgres user but I don't agree with Peter. I think the file is valuable. The file is valuable for people not using a distribution such as Debian, etc... and also is usefull to people developing packages for distributions. I don't use a packaged postgres and it was certainly valuable to me because it served as an example of what I had to do to get postgres going quickly in the way that I wanted. I sent Peter an updated file that IMHO irons out some problems which may cause Peter to consider the file broken: - ouptut was being piped to the logger if "syslog" was on It's not necessary to do that because postgres handles the decision about syslog depending on the conf file. - the postmaster was being started without nohup - the system for setting options wasn't very usefull the system that I've replaced it with isn't terribly usefull either but it works. So anyway, my view as a user is that it's usefull and that a package specific version would come with the package anyway. Nic Ferrier Tapsell-Ferrier Limited
Re: [HACKERS] Re: syslog logging setup broken?
От:
"Oliver Elphick" <olly@lfix.co.uk>
Дата:
"Nic Ferrier" wrote: >- the postmaster was being started without nohup If postmaster is being started by init, it should not need nohup, because init never exits and postmaster is not going to get shutdown unexpectedly. nohup has a performance cost, in that (at least on Linux) it automatically nices (lowers the priority of) the process. You may not want the priority lowered... -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47 GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "Lift up your heads, O ye gates; and be ye lift up, ye everlasting doors; and the King of glory shall come in. Who is this King of glory? The LORD strong and mighty, the LORD mighty in battle." Psalms 24:7,8