Thread: Init script for 8.1 compiled on Debian Stable
Hi all, For the first time, I decided to compile and manually install PostgreSQL 8.1. I did it on my Debian Stable machine because I didn't want to add the testing or unstable repositories. Everything works fine with PostgreSQL 8.1! My question is, I got a copy of an 'init.d' script from another 8.1 on Debian install (from apt-get) and tried it on my system which, obviously, failed. Does any know of/have/are will to share an 'init.d' script for a stock compiled 8.1 on Debian Stable? From what I can tell it won't start if called from 'root' so the only thing I have thought of so far is writting a little setuid postgres script to start it but then I'd still have to manually kill the server should I want to stop/restart it, which isn't ideal. Thanks!! Madison
I use the one in /contrib/start-scripts from the src tarball. ---------- Original Message ----------- From: linux@alteeve.com To: pgsql-general@postgresql.org Sent: Fri, 28 Apr 2006 10:53:25 -0400 (EDT) Subject: [GENERAL] Init script for 8.1 compiled on Debian Stable > Hi all, > > For the first time, I decided to compile and manually install PostgreSQL > 8.1. I did it on my Debian Stable machine because I didn't want to add > the testing or unstable repositories. Everything works fine with > PostgreSQL 8.1! > > My question is, I got a copy of an 'init.d' script from another 8.1 on > Debian install (from apt-get) and tried it on my system which, > obviously, failed. Does any know of/have/are will to share an 'init.d' > script for a stock compiled 8.1 on Debian Stable? > > From what I can tell it won't start if called from 'root' so the only > thing I have thought of so far is writting a little setuid postgres > script to start it but then I'd still have to manually kill the server > should I want to stop/restart it, which isn't ideal. > > Thanks!! > > Madison > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly ------- End of Original Message -------
On Fri, Apr 28, 2006 at 10:53:25AM -0400, linux@alteeve.com wrote: > My question is, I got a copy of an 'init.d' script from another 8.1 on > Debian install (from apt-get) and tried it on my system which, > obviously, failed. Does any know of/have/are will to share an 'init.d' > script for a stock compiled 8.1 on Debian Stable? There's some examples in the docs, as well in contrib/start-scripts. For debian you could have used www.backports.org which would have just worked... Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate.