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 | 122 ---------------------------------------------------
12 1 file changed, 122 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 f7b813a5..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
51 -[ -r /etc/default/corosync ] && . /etc/default/corosync
54 -# Make sure the Resource Agents run dir exists. Otherwise create it.
55 -[ -d "$RARUNDIR" ] || mkdir -p $RARUNDIR
57 -# Define LSB log_* functions.
58 -# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
59 -. /lib/lsb/init-functions
62 -# Function that starts the daemon/service
67 - # 0 if daemon has been started
68 - # 1 if daemon was already running
69 - # 2 if daemon could not be started
70 - start-stop-daemon --start --quiet --exec $DAEMON --test > /dev/null \
72 - start-stop-daemon --start --quiet --exec $DAEMON -- $OPTIONS \
74 - # Add code here, if necessary, that waits for the process to be ready
75 - # to handle requests from services started subsequently which depend
76 - # on this one. As a last resort, sleep for some time.
77 - pidof corosync > $PIDFILE
81 -# Function that stops the daemon/service
86 - # 0 if daemon has been stopped
87 - # 1 if daemon was already stopped
88 - # 2 if daemon could not be stopped
89 - # other if a failure occurred
90 - start-stop-daemon --stop --quiet --retry forever/QUIT/1 --pidfile $PIDFILE
92 - [ "$RETVAL" = 2 ] && return 2
93 - # Many daemons don't delete their pidfiles when they exit.
100 - log_daemon_msg "Starting $DESC" "$NAME"
103 - 0|1) log_end_msg 0 ;;
104 - 2) log_end_msg 1 ;;
108 - log_daemon_msg "Stopping $DESC" "$NAME"
111 - 0|1) log_end_msg 0 ;;
112 - 2) log_end_msg 1 ;;
115 - restart|force-reload)
116 - log_daemon_msg "Restarting $DESC" "$NAME"
122 - 0) log_end_msg 0 ;;
123 - 1) log_end_msg 1 ;; # Old process is still running
124 - *) log_end_msg 1 ;; # Failed to start
134 - status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
137 - echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2