Skip site navigation (1) Skip section navigation (2)

problem with kill script

From: julien <julien(at)nura(dot)no-ip(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: problem with kill script
Date: 2006-04-11 14:37:24
Message-ID: 443BBF24.2030907@nura.no-ip.com (view raw or flat)
Thread:
Lists: pgsql-bugs
Hello,

I'm posted a short modification of the kill command.

The INSTALL file mention the command "kill `cat 
/usr/local/pgsql/data/postmaster.pid`" but the pid file contain the pid 
but not only, it also contain data directory and some numbers (memory 
usage ?, database characteristic ?)

So when I run the above kill command I get :

pcbu-testiris:/etc/rc6.d# /etc/init.d/postgres stop
Stopping database server: PostgreSQL/etc/init.d/postgres: line 11: kill: 
/usr/local/pgsql/data: no such pid
/etc/init.d/postgres: line 11: kill: (5432001) - Aucun processus de ce type
/etc/init.d/postgres: line 11: kill: (9076763) - Aucun processus de ce type
.

So I add a "head -1" to the command :

kill `cat /usr/local/pgsql/data/postmaster.pid | head -1`

Julien

Responses

pgsql-bugs by date

Next:From: Richard DunneDate: 2006-04-11 16:04:49
Subject: set up on flash drive
Previous:From: 姜维Date: 2006-04-11 14:14:07
Subject: Re: constraints & tableoid [pgsql8.1]

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group