Hayde Martinez 8f5f67334f SUSE Specfile for mtce-control Init Script LSB
It is required for the goenabled and hbsAgent scripts headers to be
compliant with LSB in order to build on OBS infrastructure.

Story: 2005684
Task: 33442

Change-Id: Ic1ad5722b725c04d91f1650065faca3dc7b5c2c9
Signed-off-by: Hayde Martinez <hayde.martinez.landa@intel.com>
2019-05-28 15:17:24 +00:00

55 lines
784 B
Bash

#! /bin/sh
#
# Copyright (c) 2013-2014 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
#
# chkconfig: 2345 98 2
#
### BEGIN INIT INFO
# Provides: goenabled
# Required-Start:
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Maintenance Client "Go Enable" script
### END INIT INFO
RETVAL=0
case "$1" in
start)
echo "`date`: `hostname` : Go Enabled" > /var/run/goenabled
;;
stop)
rm -f /var/run/goenabled
;;
restart)
$0 stop
$0 start
;;
status)
;;
condrestart)
%0 restart
;;
*)
echo "usage: $0 { start | stop | status | restart | condrestart | status }"
;;
esac
exit $RETVAL
exit 0