From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#29992: 'postgres' service doesn't stop Date: Mon, 08 Jan 2018 11:59:53 +0100 Message-ID: <87373ghaza.fsf@gnu.org> References: <87mv1scodq.fsf@lassieur.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYVA4-0000R9-80 for bug-guix@gnu.org; Mon, 08 Jan 2018 06:00:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYV9u-0002OK-Is for bug-guix@gnu.org; Mon, 08 Jan 2018 06:00:12 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59800) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYV9u-0002OA-GX for bug-guix@gnu.org; Mon, 08 Jan 2018 06:00:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eYV9u-0000rG-9p for bug-guix@gnu.org; Mon, 08 Jan 2018 06:00:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87mv1scodq.fsf@lassieur.org> ("=?UTF-8?Q?Cl=C3=A9ment?= Lassieur"'s message of "Fri, 05 Jan 2018 16:32:33 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Cc: 29992@debbugs.gnu.org Hi, Cl=C3=A9ment Lassieur skribis: > 1. add (postgresql-service) to the service list > 2. reconfigure > 3. ps -ef | grep postgres > > postgres 19058 1 0 16:21 ? 00:00:00 /gnu/store/0v539yjmdqhjm1= xcpvndmagkgjz5fvh2-guile-2.2.2/bin/guile --no-auto-compile /gnu/store/rp6qy= fv5wyznz5a1i6szzzy997v603sl-start-postgres=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 > postgres 19061 19058 0 16:21 ? 00:00:00 /gnu/store/3rg0avphlwgq56= qjxd8gr8xbmh1rwkal-postgresql-10.1/bin/postgres --config-file=3D/gnu/store/= 7m8yrv4avricqkn92737b5mamlvaid34-postgresql.conf -p 5432 -D /var/lib/postgr= esql/data=20=20=20=20=20 > postgres 19063 19061 0 16:21 ? 00:00:00 postgres: checkpointer pr= ocess > postgres 19064 19061 0 16:21 ? 00:00:00 postgres: writer process > postgres 19065 19061 0 16:21 ? 00:00:00 postgres: wal writer proc= ess > postgres 19066 19061 0 16:21 ? 00:00:00 postgres: autovacuum laun= cher process > postgres 19067 19061 0 16:21 ? 00:00:00 postgres: stats collector= process > postgres 19068 19061 0 16:21 ? 00:00:00 postgres: bgworker: logic= al replication launcher > clement 19070 18802 0 16:21 pts/4 00:00:00 grep postgres > > > 4. herd stop postgres (output: Service postgres has been stopped) > 5. ps -ef | grep postgres > > postgres 19061 1 0 16:21 ? 00:00:00 /gnu/store/3rg0avphlwgq56= qjxd8gr8xbmh1rwkal-postgresql-10.1/bin/postgres --config-file=3D/gnu/store/= 7m8yrv4avricqkn92737b5mamlvaid34-postgresql.conf -p 5432 -D /var/lib/postgr= esql/data=20=20=20=20=20 > postgres 19063 19061 0 16:21 ? 00:00:00 postgres: checkpointer pr= ocess > postgres 19064 19061 0 16:21 ? 00:00:00 postgres: writer process > postgres 19065 19061 0 16:21 ? 00:00:00 postgres: wal writer proc= ess > postgres 19066 19061 0 16:21 ? 00:00:00 postgres: autovacuum laun= cher process=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 > postgres 19067 19061 0 16:21 ? 00:00:00 postgres: stats collector= process > postgres 19068 19061 0 16:21 ? 00:00:00 postgres: bgworker: logic= al replication launcher > clement 19078 18802 0 16:21 pts/4 00:00:00 grep postgres Perhaps the proper way to stop postgresql is via one of its client commands, like we do for nginx? HTH, Ludo=E2=80=99.