Files
metal/mtce-control/src/scripts/goenabled
T
Yong Hu 718efbcf0d remove cgts- prefix to align with other sub-projects (packages)
Rename files and folders in mtce-compute, mtce-control, and
mtce-storage. As well update packages' names in bsp-files/
filter_out_* scripts accordingly.

Story: 2004079
Task: 27485

Change-Id: Ic1e9bd4bb8d72f30ddcc2a2bfc602a1a34e583da
Signed-off-by: Yong Hu <yong.hu@intel.com>
2018-10-19 06:07:31 +00:00

53 lines
749 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
# 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