From 1390ce0e95608ce0a4483b261c88876d6b80b5c1 Mon Sep 17 00:00:00 2001 From: Erich Cordoba Date: Tue, 25 Jun 2019 16:37:30 -0500 Subject: [PATCH] Add LSB headers to mtce service scripts The LSB headers are required by openSUSE build system as one of the quality checks. This patch adds the header and missing fields. A $null value was set for all unchanged fields Change-Id: I22ee3571b70b22e1fe8238c2a94b3f4d099d41cd Signed-off-by: Erich Cordoba --- mtce/src/alarm/scripts/mtcalarm.init | 2 ++ mtce/src/fsmon/scripts/fsmon | 12 ++++++++++++ mtce/src/hostw/scripts/hostw | 2 ++ mtce/src/hwmon/scripts/lsb/hwmon | 12 ++++++++++++ mtce/src/lmon/scripts/lmon | 2 ++ mtce/src/pmon/scripts/pmon | 2 ++ mtce/src/scripts/goenabled | 2 ++ mtce/src/scripts/hbsClient | 2 ++ mtce/src/scripts/mtcClient | 2 ++ mtce/src/scripts/mtclog | 12 ++++++++++++ mtce/src/scripts/runservices | 2 ++ 11 files changed, 52 insertions(+) diff --git a/mtce/src/alarm/scripts/mtcalarm.init b/mtce/src/alarm/scripts/mtcalarm.init index 4d33179e..57f348f2 100644 --- a/mtce/src/alarm/scripts/mtcalarm.init +++ b/mtce/src/alarm/scripts/mtcalarm.init @@ -10,6 +10,8 @@ # ### BEGIN INIT INFO # Provides: mtcalarm +# Required-Start: $null +# Required-Stop: $null # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Maintenance Alarm Daemon diff --git a/mtce/src/fsmon/scripts/fsmon b/mtce/src/fsmon/scripts/fsmon index b29f85f5..6d8abcc0 100644 --- a/mtce/src/fsmon/scripts/fsmon +++ b/mtce/src/fsmon/scripts/fsmon @@ -5,6 +5,18 @@ # SPDX-License-Identifier: Apache-2.0 # +# +# chkconfig: 2345 05 95 +# +### BEGIN INIT INFO +# Provides: fsmon +# Required-Start: $null +# Required-Stop: $null +# Default-Start: $null +# Default-Stop: $null +# Short-Description: fsmon daemon +### END INIT INFO + . /etc/init.d/functions DAEMON_NAME="fsmond" diff --git a/mtce/src/hostw/scripts/hostw b/mtce/src/hostw/scripts/hostw index 9f5526c5..82a4aaf1 100644 --- a/mtce/src/hostw/scripts/hostw +++ b/mtce/src/hostw/scripts/hostw @@ -10,6 +10,8 @@ # ### BEGIN INIT INFO # Provides: hostwd +# Required-Start: $null +# Required-Stop: $null # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: host watchdog daemon diff --git a/mtce/src/hwmon/scripts/lsb/hwmon b/mtce/src/hwmon/scripts/lsb/hwmon index 45c75d8f..4596a36d 100644 --- a/mtce/src/hwmon/scripts/lsb/hwmon +++ b/mtce/src/hwmon/scripts/lsb/hwmon @@ -5,6 +5,18 @@ # SPDX-License-Identifier: Apache-2.0 # +# +# chkconfig: 2345 05 95 +# +### BEGIN INIT INFO +# Provides: hwmon +# Required-Start: $null +# Required-Stop: $null +# Default-Start: $null +# Default-Stop: $null +# Short-Description: hwmon daemon +### END INIT INFO + . /etc/init.d/functions DAEMON_NAME="hwmond" diff --git a/mtce/src/lmon/scripts/lmon b/mtce/src/lmon/scripts/lmon index e55dac51..6024e169 100644 --- a/mtce/src/lmon/scripts/lmon +++ b/mtce/src/lmon/scripts/lmon @@ -10,6 +10,8 @@ # ### BEGIN INIT INFO # Provides: lmon +# Required-Start: $null +# Required-Stop: $null # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Link Monitor daemon diff --git a/mtce/src/pmon/scripts/pmon b/mtce/src/pmon/scripts/pmon index 0b028808..bdc3ab7d 100644 --- a/mtce/src/pmon/scripts/pmon +++ b/mtce/src/pmon/scripts/pmon @@ -10,6 +10,8 @@ # ### BEGIN INIT INFO # Provides: pmon +# Required-Start: $null +# Required-Stop: $null # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: process Monitor daemon diff --git a/mtce/src/scripts/goenabled b/mtce/src/scripts/goenabled index b91f4b79..88aa24ea 100644 --- a/mtce/src/scripts/goenabled +++ b/mtce/src/scripts/goenabled @@ -10,6 +10,8 @@ # ### BEGIN INIT INFO # Provides: goenabled +# Required-Start: $null +# Required-Stop: $null # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Maintenance Client "Go Enable" script diff --git a/mtce/src/scripts/hbsClient b/mtce/src/scripts/hbsClient index f493c0df..67d7e84c 100644 --- a/mtce/src/scripts/hbsClient +++ b/mtce/src/scripts/hbsClient @@ -10,6 +10,8 @@ # ### BEGIN INIT INFO # Provides: hbsClient +# Required-Start: $null +# Required-Stop: $null # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Heartbeat Client Daemon diff --git a/mtce/src/scripts/mtcClient b/mtce/src/scripts/mtcClient index 5accff32..11136899 100644 --- a/mtce/src/scripts/mtcClient +++ b/mtce/src/scripts/mtcClient @@ -10,6 +10,8 @@ # ### BEGIN INIT INFO # Provides: mtcClient +# Required-Start: $null +# Required-Stop: $null # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Maintenance Client Daemon diff --git a/mtce/src/scripts/mtclog b/mtce/src/scripts/mtclog index ba102f90..80db22a9 100644 --- a/mtce/src/scripts/mtclog +++ b/mtce/src/scripts/mtclog @@ -7,6 +7,18 @@ # This script starts and stops a mtclogd Daemon process +# +# chkconfig: 2345 95 95 +# +### BEGIN INIT INFO +# Provides: mtclog +# Required-Start: $null +# Required-Stop: $null +# Default-Start: $null +# Default-Stop: $null +# Short-Description: mtclog daemon +### END INIT INFO + . /etc/init.d/functions DAEMON_NAME="mtclogd" diff --git a/mtce/src/scripts/runservices b/mtce/src/scripts/runservices index b6708467..ced9956e 100755 --- a/mtce/src/scripts/runservices +++ b/mtce/src/scripts/runservices @@ -10,6 +10,8 @@ # ### BEGIN INIT INFO # Provides: runservices +# Required-Start: $null +# Required-Stop: $null # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Maintenance "Run Host Services" script