
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>
55 lines
784 B
Bash
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
|