From 3fe53231879635bfefa39f3673ddc631e9e6fd3c Mon Sep 17 00:00:00 2001 From: Stefan Parvu Date: Mon, 24 Dec 2018 11:43:41 +0200 Subject: [PATCH] cleanup linux K50,K500,K5000 --- etc/linux/kkernel | 72 ----------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100755 etc/linux/kkernel diff --git a/etc/linux/kkernel b/etc/linux/kkernel deleted file mode 100755 index 34a71f4..0000000 --- a/etc/linux/kkernel +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh -# -# chkconfig: 2345 96 10 -# description: kronometrix kernel data analytics platform -# -# /etc/init.d/kkernel -# -#BSD 3-Clause License -# -#Copyright (c) 2018, SDR Dynamics, Stefan Parvu -#All rights reserved. -# -#Redistribution and use in source and binary forms, with or without -#modification, are permitted provided that the following conditions are met: -# -#* Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -#* Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -#* Neither the name of the copyright holder nor the names of its -# contributors may be used to endorse or promote products derived from -# this software without specific prior written permission. -# -#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -#AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -#IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -#DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -#FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -#DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -#SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -#CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -#OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -RETVAL=0 -OS_NAME=`uname -s` - -BASEDIR="/opt/kronometrix/kernel/etc" -KRMX_USER="krmx" - -# basedir test -test -d ${BASEDIR} || exit 0 - -start() { - su - $KRMX_USER -c "${BASEDIR}/kkernel start" -} - - -stop() { - su - $KRMX_USER -c "${BASEDIR}/kkernel stop" -} - - -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart) - stop - start - ;; - *) - echo "Usage: $0 {start|stop|restart}" - exit 1 -esac -exit $RETVAL