1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3 Date: Wed, 8 Mar 2017 12:59:37 +0100
4 Subject: [PATCH] remove init script
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 debian/corosync.init | 120 -------------------------------------------
12 1 file changed, 120 deletions(-)
13 delete mode 100644 debian/corosync.init
15 diff --git a/debian/corosync.init b/debian/corosync.init
16 deleted file mode 100644
17 index ff5ee9f7..00000000
18 --- a/debian/corosync.init
25 -# Required-Start: $network $remote_fs $syslog
26 -# Required-Stop: $network $remote_fs $syslog
27 -# Default-Start: 2 3 4 5
28 -# Default-Stop: 0 1 6
29 -# Short-Description: corosync cluster framework
30 -# Description: Manages the Corosync Cluster Engine.
33 -# Author: Fabio M. Di Nitto <fabbione@ubuntu.com>
35 -# PATH should only include /usr/* if it runs after the mountnfs.sh script
36 -PATH=/usr/sbin:/usr/bin:/sbin:/bin
37 -DESC="corosync daemon"
39 -DAEMON=/usr/sbin/$NAME
41 -PIDFILE=/var/run/$NAME.pid
42 -SCRIPTNAME=/etc/init.d/$NAME
43 -PIDFILE=/var/run/corosync.pid
44 -RARUNDIR=/var/run/resource-agents
46 -# Exit if the package is not installed
47 -[ -x "$DAEMON" ] || exit 0
49 -# Read configuration variable file if it is present
50 -[ -r /etc/default/corosync ] && . /etc/default/corosync
52 -# Make sure the Resource Agents run dir exists. Otherwise create it.
53 -[ -d "$RARUNDIR" ] || mkdir -p $RARUNDIR
55 -# Define LSB log_* functions.
56 -# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
57 -. /lib/lsb/init-functions
60 -# Function that starts the daemon/service
65 - # 0 if daemon has been started
66 - # 1 if daemon was already running
67 - # 2 if daemon could not be started
68 - start-stop-daemon --start --quiet --exec $DAEMON --test > /dev/null \
70 - start-stop-daemon --start --quiet --exec $DAEMON -- $OPTIONS \
72 - # Add code here, if necessary, that waits for the process to be ready
73 - # to handle requests from services started subsequently which depend
74 - # on this one. As a last resort, sleep for some time.
75 - pidof corosync > $PIDFILE
79 -# Function that stops the daemon/service
84 - # 0 if daemon has been stopped
85 - # 1 if daemon was already stopped
86 - # 2 if daemon could not be stopped
87 - # other if a failure occurred
88 - start-stop-daemon --stop --quiet --retry forever/QUIT/1 --pidfile $PIDFILE
90 - [ "$RETVAL" = 2 ] && return 2
91 - # Many daemons don't delete their pidfiles when they exit.
98 - log_daemon_msg "Starting $DESC" "$NAME"
101 - 0|1) log_end_msg 0 ;;
102 - 2) log_end_msg 1 ;;
106 - log_daemon_msg "Stopping $DESC" "$NAME"
109 - 0|1) log_end_msg 0 ;;
110 - 2) log_end_msg 1 ;;
113 - restart|force-reload)
114 - log_daemon_msg "Restarting $DESC" "$NAME"
120 - 0) log_end_msg 0 ;;
121 - 1) log_end_msg 1 ;; # Old process is still running
122 - *) log_end_msg 1 ;; # Failed to start
132 - status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
135 - echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2