From c1f3356d50ecb5f533e69d1ff351e637dac98075 Mon Sep 17 00:00:00 2001 From: Daniel Dehennin Date: Thu, 1 Sep 2016 11:06:57 +0200 Subject: [PATCH] Suppression du script system V MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Et suppression de la référence inutile dans « eole-one-master.mk ». Ref: #16928 --- eole-one-master.mk | 1 - init/onenode | 83 ---------------------------------------------- 2 files changed, 84 deletions(-) delete mode 100755 init/onenode diff --git a/eole-one-master.mk b/eole-one-master.mk index 7bf6cf8..e7e1efd 100644 --- a/eole-one-master.mk +++ b/eole-one-master.mk @@ -1,4 +1,3 @@ # eole-one-singlenode specific rules hooks_PROG_DIR := $(DESTDIR)/var/lib/one/remotes/hooks/eole -init_PROG_DIR := $(DESTDIR)/etc/init.d diff --git a/init/onenode b/init/onenode deleted file mode 100755 index 734b461..0000000 --- a/init/onenode +++ /dev/null @@ -1,83 +0,0 @@ -#! /bin/sh -### BEGIN INIT INFO -# Provides: onenode -# Required-Start: creoled libvirt-bin opennebula openvswitch-switch -# Required-Stop: creoled libvirt-bin opennebula openvswitch-switch -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Node vm management -# Description: Suspend and resume VM of OpenNebula node -### END INIT INFO - -# Author: Jaime Melis - -PATH=/sbin:/usr/sbin:/bin:/usr/bin -DESC="OpenNebula Node" -NAME=onevm-all -DAEMON=/usr/share/eole/sbin/$NAME -DAEMON_ARGS="-w" -SCRIPTNAME=/etc/init.d/onenode -PID_FILE=/var/run/one/onenode -CREDS=/var/lib/one/.one/one_auth - -# Exit if the package is not installed -[ -x "$DAEMON" ] || exit 0 - -# Load the VERBOSE setting and other rcS variables -. /lib/init/vars.sh - -# Define LSB log_* functions. -# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. -. /lib/lsb/init-functions - -# -# Function that starts the daemon/service -# -do_start() -{ - ${DAEMON} ${DAEMON_ARGS} -c ${CREDS} -a "resume" -} - -# -# Function that stops the daemon/service -# -do_stop() -{ - ${DAEMON} ${DAEMON_ARGS} -c ${CREDS} -a "suspend" -} - -do_status() -{ - ${DAEMON} ${DAEMON_ARGS} -c ${CREDS} -a "status" -} - -case "$1" in - start) - [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" - do_start - case "$?" in - 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; - 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; - esac - ;; - stop) - [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" - do_stop - case "$?" in - 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; - 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; - esac - ;; - status) - do_status - ;; - restart|force-reload) - echo "Not supported action" - ;; - *) - echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 - exit 3 - ;; -esac - -: