From a177ae24393eb2e4bfce509376b2c9af02ed85d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B6ppner?= Date: Thu, 12 May 2022 19:13:48 +0200 Subject: [PATCH] scripts/dumpconf: Update header of the dumpconf script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the leftovers of the SysV init configuration and replace it with proper information about the tool. Also add the missing Copyright statement and remove DUMPCONF_BIN as there is no user. Fixes: https://github.com/ibm-s390-linux/s390-tools/issues/132 Acked-by: Stefan Haberland Signed-off-by: Jan Höppner --- scripts/dumpconf | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/scripts/dumpconf b/scripts/dumpconf index 263c167b..02256655 100755 --- a/scripts/dumpconf +++ b/scripts/dumpconf @@ -1,23 +1,18 @@ #!/bin/bash -### BEGIN INIT INFO -# Provides: dumpconf -# Required-Start: $local_fs -# Required-Stop: $local_fs -# Should-Start: -# Should-Stop: -# Default-Start: 0 1 2 3 5 6 -# Default-Stop: -# Short-Description: Configure s390 dump feature -# Description: Configures the s390 dump feature. It uses the configuration file -# /etc/sysconfig/dumpconf -# X-Systemd-RemainAfterExit: true -### END INIT INFO +# +# dumpconf - dump configuration script +# +# This script is called by the corresponding systemd unit file dumpconf.service +# but can also be used stand-alone. +# +# The configuration file is located in /etc/sysconfig/dumpconf +# +# Copyright IBM Corp. 2006, 2022 +# +# s390-tools is free software; you can redistribute it and/or modify +# it under the terms of the MIT license. See LICENSE for details. +# -# chkconfig: 012356 01 99 - -# This script can be either used stand-alone or as System V init script. - -DUMPCONF_BIN=/etc/init.d/dumpconf DUMP_CONFIG_FILE=/etc/sysconfig/dumpconf CMDFULL=$0 CMD="dumpconf" @@ -107,7 +102,7 @@ printversion() { cat <