Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w5LnG-0039to-28 for pgsql-general@arkaria.postgresql.org; Wed, 25 Mar 2026 10:48:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5LnE-00Dhk7-2v for pgsql-general@arkaria.postgresql.org; Wed, 25 Mar 2026 10:48:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w5LnE-00Dhjz-1o for pgsql-general@lists.postgresql.org; Wed, 25 Mar 2026 10:48:57 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w5LnC-000000013BN-0SA0 for pgsql-general@lists.postgresql.org; Wed, 25 Mar 2026 10:48:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=unixarea.de ; s=blu3434000; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Reply-To:Message-ID:Subject:To:From:Date:Sender:Cc:Content-ID: Content-Description:In-Reply-To:References; bh=1CWkJ49RkC8WbFCNjE4NxuNOFBNrnG3EzNzNUj7wzr0=; b=aHp1lSHTBnb8sxy2CSn1D7PCsr Vb/RIUpIX9IOAi+VMKQqCC/VvTNTIaAkxjdLUCO/oyesHuxgZuXI2pPzqBIWhj79coMrHiL5lTYJh 158h8yPbXqrLZz+7+Eel2EjlhEiLKBVs7mYrRkTjI0L4jxzsCj9FoNjjcx/OgrZlaWMYjAkZeBWXe ZOJvJ33WBMSy2+yS3pX4zGeEZxziBijMD8wotI03MgEQ16pKo3/v5gg9grAQvdjz4qiXdneHlMmq8 +MWUZZGHZUDhDUnhriGvrSjN8EWGojxy4b9UlYB3vX7F7rC3q2mypV7HqGCsm6SVcMU4kn5dZ1vOK wM3662kw==; Received: from [212.222.85.178] (helo=pureos) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1w5LnB-003g6I-C4 for pgsql-general@lists.postgresql.org; Wed, 25 Mar 2026 11:48:53 +0100 Date: Wed, 25 Mar 2026 11:48:51 +0100 From: Matthias Apitz To: pgsql-general@lists.postgresql.org Subject: malformated LSB header in postgres: missing LSB end marker, aborting Message-ID: Reply-To: Matthias Apitz MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 14.0-CURRENT 1400094 (amd64) X-message-flag: Mails in HTML will not be read! Send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 212.222.85.178 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, We use the following script as /etc/init.d/postgres on SuSE Linux Enterprise, SLES 15 SP7, to start PostgreSQL 16.5 server: $ tar tzf postgresql-16.5.tar.gz | grep start-scripts/linux postgresql-16.5/contrib/start-scripts/linux # cp postgresql-16.5/contrib/start-scripts/linux /etc/init.d/postgres # head -10 /etc/init.d/postgres #! /bin/sh # chkconfig: 2345 98 02 # description: PostgreSQL RDBMS # This is an example of a start/stop script for SysV-style init, such # as is used on Linux systems. You should edit some of the variables # and maybe the 'echo' commands. # # Place this file at /etc/init.d/postgresql (or # ... Together with systemd services this gives the following error: # systemctl enable postgres.service Synchronizing state of postgres.service with SysV service script with /usr/lib/systemd/systemd-sysv-install. Executing: /usr/lib/systemd/systemd-sysv-install enable postgres error: malformated LSB header in postgres: missing LSB end marker, aborting. The service file contains: # cat /etc/systemd/system/postgres.service [Unit] Description=SunRise PostgreSQL server After=systemd-user-sessions.service [Service] ExecStart=/etc/init.d/postgres start ExecStop=/etc/init.d/postgres stop TimeoutStartSec=infinity RemainAfterExit=yes [Install] WantedBy=multi-user.target When I enhance the script with this section between BEGIN / END # cat /etc/init.d/postgres #! /bin/sh # chkconfig: 2345 98 02 # description: PostgreSQL RDBMS ### BEGIN INIT INFO # Provides: postgresql # Required-Start: $network $named # Required-Stop: # Default-Start: 3 5 # Default-Stop: # Description: ### END INIT INFO ... The error goes away: # systemctl enable postgres.service Synchronizing state of postgres.service with SysV service script with /usr/lib/systemd/systemd-sysv-install. Executing: /usr/lib/systemd/systemd-sysv-install enable postgres ln -sf ../postgres /etc/init.d/rc3.d/S50postgres ln -sf ../postgres /etc/init.d/rc5.d/S50postgres Any comments on this? Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub Annalena Baerbock: "We are fighting a war against Russia ..." (25.1.2023) I, Matthias, I am not at war with Russia. Я не воюю с Россией. Ich bin nicht im Krieg mit Russland.