Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHU5k-0002IB-Nz for pgsql-general@arkaria.postgresql.org; Tue, 30 Oct 2018 13:29:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHU5i-0001Sk-8Q for pgsql-general@arkaria.postgresql.org; Tue, 30 Oct 2018 13:29:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHU5g-0001Qa-E0 for pgsql-general@lists.postgresql.org; Tue, 30 Oct 2018 13:29:54 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHU5Z-000727-Uz for pgsql-general@postgresql.org; Tue, 30 Oct 2018 13:29:52 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9E6852153B; Tue, 30 Oct 2018 09:29:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 30 Oct 2018 09:29:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=v gR50sQSMsrJ+M+UefwOdkw058dXHI2BIOXxs0KNFrQ=; b=VXzE+iAlqcn94jE9d POpDu/x/6+OUEjqFMN71IF0iP+s9Qhzg8KgdHN6eFDTMYdicxs8eeE8HlS9VAB7Q vvLikUSETgag+WjNspKn1+M/Q06zruEdLb2AAL0RLFOwoK45S4uVAu3jfwymWp0l CX06yM3lxkTKeMZ2hgBPhYHWUsIfJrRr/3lOSGfOpsv/tBQ8BgSZ5mSN9LgRcEiP V84QQuwHW33CS/CvJRvb78BxdHCPFy4LKgZ/Z9bVN2lrszheDFG/mOadumbFpVzd eNwhPcDLknHAbVsJnRgzkFzz8J+1dl7Rv2jQn5zMfpEHTUbLp2PlpX/cf2yy7tx4 K68fA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=vgR50sQSMsrJ+M+UefwOdkw058dXHI2BIOXxs0KNF rQ=; b=j2qGOr4lkG7EzN+RjGQISJzzMQTyWkc1MUVzQF9YmipCMsErCDEfXsLRq rRoqqQTGZCX7iYbwLUwkOKIAWVrGijIA1NPeExQ9tIblWYQ1byKc10GTcEkweh95 WmzhWntspiBFrPe0V4BKd4rGN2gkmQLydTiGCFSPQPgOZVei7g5jaeDeAN+Q6ZeM t7QI7IulEqWFeP+GvAVjWuaz7P29BH+2BJ/p7IGOLGeKmi4Uaq8vDxgwmkI/MfKj tuOPUkwzv9Xtij1HqnQeXtUN8YWMZ479RCPum4tC3FC/bQ5mJUgQWGaC711K50lz uTrrTlY7zgs/zQ7YmT2EcFgk9ukng== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 8838D102DD; Tue, 30 Oct 2018 09:29:42 -0400 (EDT) Subject: Re: Question about servicescript for stopping and starting postgresql instance To: Marian Forums , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: Date: Tue, 30 Oct 2018 06:29:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/30/18 5:09 AM, Marian Forums wrote: > Hi, > > I have a question about creating a service script to start/stop/status > postgresql instance ( version 9.6.8) on Red Hat 7. How did you install Postgres on the machine? > > I have read the explanation of how to create such a service script on > https://www.postgresql.org/docs/9.6/static/server-start.html . Did you use the example at the above link or did you write your own? If you wrote your own can you show it? > > Stopping and Starting works. > However when I stop the service with: > systemctl stop postgresq.service and than ask for the status with > systemctl status postgresql.service, the service gets started again. > > Is this normal functionality on Red Hat 7? > I have searched on the Internet ( including the Red Hat site) for a > parameter to replace this behavior, but did not find anything. > > Your help is much appreciated. > Thanks in advance. > Regards, > Marian -- Adrian Klaver adrian.klaver@aklaver.com