Re: Troubles with installation of cygrunsrv - Mailing list pgsql-cygwin
From | Franco Bruno Borghesi |
---|---|
Subject | Re: Troubles with installation of cygrunsrv |
Date | |
Msg-id | 1068732278.803.16.camel@taz Whole thread Raw |
In response to | Troubles with installation of cygrunsrv ("Fabio Patocchi" <patocchi@gmx.ch>) |
List | pgsql-cygwin |
you're right, It's xp professional
I really don't know which the diferences are for cygwin under xp home & xp professional.
But it seems that you have just created a user in cygwin, just like in any other unix. You should be able to edit /etc/passwd and erase the last line.
You should try to find out the your user name (id -un), and then stopping postmaster service (net stop postmaster), removing it (cygrunsrv -remove postmaster), changing the ownership of postgresql directory (chown -R <your_user_name> /var/postgres).
Then reboot your system, and after that, reinstall the postmaster service (using the <your_user_name> this time).
I guess it should work this way.
On Thu, 2003-11-13 at 08:16, Fabio Patocchi wrote:
I really don't know which the diferences are for cygwin under xp home & xp professional.
But it seems that you have just created a user in cygwin, just like in any other unix. You should be able to edit /etc/passwd and erase the last line.
You should try to find out the your user name (id -un), and then stopping postmaster service (net stop postmaster), removing it (cygrunsrv -remove postmaster), changing the ownership of postgresql directory (chown -R <your_user_name> /var/postgres).
Then reboot your system, and after that, reinstall the postmaster service (using the <your_user_name> this time).
I guess it should work this way.
On Thu, 2003-11-13 at 08:16, Fabio Patocchi wrote:
Ciao Franco,
Thanx for your hints!
Probably you have installed winxp professional!
In the meantime I read that the xp-home doesn’t have user right management so I’m not able to initialize postgresql as postgres user.
Unfortunately I’ve already created the postgres user account with “mkpasswd –l –u postgress >>/etc/passwd”, so I cannot access the “usr/share/postgesql/data” directory anymore. Do you know how I could remove the postgres user account?
Grazie Fabio
-----Ursprüngliche Nachricht-----
Von: Franco Bruno Borghesi [mailto:franco@akyasociados.com.ar]
Gesendet: Mittwoch, 12. November 2003 22:56
An: fabio@patocchi.ch
Cc: pgsql-cygwin@postgresql.org
Betreff: Re: [CYGWIN] Troubles with installation of cygrunsrv
have you run initdb -D /var/pgsql/data?
I'm using ipc-daemon2 and it works just fine (on winxp too), so it's not the problem.
There is no utility (as far as I know) to remove services from the scm on windows (I mean included with windows).
But you can remove ipc-daemon2 with
$ipc-daemon2 --remove-service
and postmaster with
$cygrunsrv --remove postmaster
Remember to reboot before you try to reinstall any of these services.
I would try stopping and starting ipc-daemon2 from the scm, and if it works ok, then I would try to start postgres.
If you have problems starting ipc-daemon2 you should check the event viewer (i guess) to find out what happened.
If you have problems starting postgresql, try
$/usr/bin/postmaster -D /var/pgsql/data
from the console to see any error messages.
Hope it helps.
On Wed, 2003-11-12 at 05:42, Fabio Patocchi wrote:
Hi
I tried to install the postmaster on XP Home Edition but it doesn’t work. The service starts and stops right after.
I loaded it that way: cygrunsrv --install postmaster --path /usr/bin/postmaster --args "-D /var/psql/data -i" --dep ipc-daemon2 --termsig INT –shutdown
Other question...I couldn’t find the “ipc-daemon” service so I loaded “ipc-daemon2”. Is that the problem? What is the difference between both of them?
How can I delete a service in the service list on XP?
Thanx for your help!
Fabio Patocchi
Attachment
pgsql-cygwin by date: