Обсуждение: Closing Cygwin's window

Поиск
Список
Период
Сортировка

Closing Cygwin's window

От
"Tamara D. Blum"
Дата:
Hi !
 
Is there something CygWin executes from a file when i close the window, just before ending the session (like the profile, but at the end of the session) ?
I want to kill in that moment the postmaster preventing anyone close the window without quiting the way they should.
 
Thanks
 
	            Tamara D. Blum
	        Analista de Sistemas
	        Tel.: 4831-9061 al 66 int. 110  
	Sistema Argentino de Informática Jurídica
	Ministerio de Justicia y Derechos Humanos
 

Re: Closing Cygwin's window

От
Jason Tishler
Дата:
Tamara,

On Wed, Sep 26, 2001 at 09:42:04AM -0300, Tamara D. Blum wrote:
> Is there something CygWin executes from a file when i close the window, just
> before ending the session (like the profile, but at the end of the session) ?

Assuming that you are using bash as your shell, we have the following
from the man page:

    When a login shell exits, bash reads and executes commands
    from the file ~/.bash_logout, if it exists.

> I want to kill in that moment the postmaster preventing anyone close the
> window without quiting the way they should.

Are you using Windows NT 4.0 or 2000?  If so, then I recommend running
postmaster as an NT service, so that it automatically starts when the
machine boots and stops when the machine shuts down?

See the README for more details:

    /usr/doc/Cygwin/postgresql-7.1.3.README

Jason

Re: Closing Cygwin's window

От
"Tamara D. Blum"
Дата:
> Are you using Windows NT 4.0 or 2000?  If so, then I recommend running
> postmaster as an NT service, so that it automatically starts when the
> machine boots and stops when the machine shuts down?

Jason,
i am running ipc-daemon as a service, but i can't run postmaster as service
because Windows ask me how to open that file.
I read /usr/doc/Cygwin/postgresql-7.1.3.README and there is nothing about
running postmaster as a service.

Thanks,
Tamara



Re: Closing Cygwin's window

От
Jason Tishler
Дата:
Tamara,

On Wed, Sep 26, 2001 at 06:02:57PM -0300, Tamara D. Blum wrote:
> > Are you using Windows NT 4.0 or 2000?  If so, then I recommend running
> > postmaster as an NT service, so that it automatically starts when the
> > machine boots and stops when the machine shuts down?
>
> Jason,
> i am running ipc-daemon as a service, but i can't run postmaster as service
> because Windows ask me how to open that file.
> I read /usr/doc/Cygwin/postgresql-7.1.3.README and there is nothing about
> running postmaster as a service.

Are you sure that you read the one from 7.1.3?  Maybe you read the one
from 7.1.2.  Here is a snippet from the 7.1.3 README:

4. Install postmaster as a NT service:

    # cygrunsrv --install postmaster --path /usr/bin/postmaster --args "-D /usr/share/postgresql/data -i" --dep
ipc-daemon--termsig INT --user postgres --shutdown # [5] [6] 

Jason