Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gA2Wi-0005Ex-1e for pgsql-general@arkaria.postgresql.org; Wed, 10 Oct 2018 00:39:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gA2Wf-0003Lj-Vj for pgsql-general@arkaria.postgresql.org; Wed, 10 Oct 2018 00:38:57 +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 1gA2Wd-0003Kl-QU for pgsql-general@lists.postgresql.org; Wed, 10 Oct 2018 00:38:57 +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 1gA2WX-0003NY-1f for pgsql-general@lists.postgresql.org; Wed, 10 Oct 2018 00:38:55 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A04142202D; Tue, 9 Oct 2018 20:38:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 09 Oct 2018 20:38:46 -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=R I3s6w+l9eNl2MOUM7c37hbyEw9r/MelsOGCcNpIxBk=; b=vSOFelXLQgoG7zVaq w4dVRG5WvYqGawp2I8FO86jEdAKFGJBu+94hbdpV4CsLOJYtaa5kxU0/p55HqgVA sylVh1xPHAqH4Ce+qT/1yRw42SDyB6CYsHvfl4WpuMVdu9qAm1paYFlEva333hlP QAsVzJ1w5UC+r9idCWsmz+U8T7WQjwJ/ttZRByY4B2i8Q9a2gWLCsCOTeI+c/5xy sfUjpHkFajl6GY4FXUf3bcIPU+pd26oYJK6GkCvRXxuHJZzqjjxul0vRdKEPcEdz F/MvT9rkbMAsrE6wlJ6Vg8uA0X3aabj76u614d2A3h6bOsrVD8e4Kyx++T4yH+Cm xL2Dw== 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=RI3s6w+l9eNl2MOUM7c37hbyEw9r/MelsOGCcNpIx Bk=; b=NBCMFIP4m72zPhaIbmxmHddhFLt12uXedtGUfolfPhnJubFBvtCX6wnmC x3bOBtAD0hAS/WKR/uuVNjnkcU1rcYDH7xeH1TzvDPJeqkQW1S4n3gowtK8zJ9us l6AzTINL5eolWJRXWDQpXNjoevY7fnzH53Rx08Hr2p9B11K9fn5QtR5GSYHE7f1d heP4mBnC+gkWC1+CNz8O4R48qTXDwrfsZDIw0H5Lpq1bQfGPo9M0kkIRNKIDvkU1 9ChxuUiiNc1XPkTPh0paKyXdsiXPyVG5+fgN9NqLa9UVHRCDfUAQElnB1LPu5eke eXlGokQ063HtUTUuN8be7QzcUIdLw== 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 85E70E4179; Tue, 9 Oct 2018 20:38:45 -0400 (EDT) Subject: Re: RHEL 7 (systemd) reboot To: Bryce Pepper , "pgsql-general@lists.postgresql.org" References: <49f8b4546d9948d798d81e1fd32bfb4f@WNEXMBFEP03.KCSCP.CORP> From: Adrian Klaver Message-ID: <532b0c39-6b76-658f-fe45-852dd964d7ba@aklaver.com> Date: Tue, 9 Oct 2018 17:38:44 -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: <49f8b4546d9948d798d81e1fd32bfb4f@WNEXMBFEP03.KCSCP.CORP> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/9/18 11:06 AM, Bryce Pepper wrote: > I am running three instances (under different users) on a RHEL 7 server > to support a vendor product. > > In the defined services, the start & stop scripts work fine when invoked > with systemctl {start|stop} whatever.service  but we have automated > monthly patching which does a reboot. > > Looking in /var/log/messages and the stop scripts do not get invoked on > reboot, therefore I created a new shutdown service as described here > . > > It appears that PostGreSQL is receiving a signal from somewhere prior to > my script running… > > > The database must be available for the product to shut down in a > consistent state. > > I am open to suggestions. What is the below doing or coming from?: db_execute_sql failed while processing /data00/ctmlinux/ctm_server/tmp/upd_CMS_SYSPRM_29448. > > Thanks, > > Bryce > > *Bryce Pepper* > > Sr. Unix Applications Systems Engineer > > *The Kansas City Southern Railway Company * > > 114 West 11^th Street  |  Kansas City,  MO 64105 > > Office:  816.983.1512 > > Email: bpepper@kcsouthern.com > -- Adrian Klaver adrian.klaver@aklaver.com