summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <cascardo@cascardo.eti.br>2020-04-17 14:01:20 -0300
committerThadeu Lima de Souza Cascardo <cascardo@cascardo.eti.br>2020-04-17 14:01:20 -0300
commit5e7ef67bc554e21c4bcf040ffa9e7c83a013882b (patch)
tree290734ed144f3a1caa27bb7f2f28512dc9ba6b3e
parent959caaff3017a53a8b8fcdc3d21ecdf2fcc4d3b5 (diff)
Remove upstart support.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@cascardo.eti.br>
-rwxr-xr-xdebian/kdump-tools.init9
-rw-r--r--debian/kdump-tools.upstart46
2 files changed, 0 insertions, 55 deletions
diff --git a/debian/kdump-tools.init b/debian/kdump-tools.init
index 43fe7f6..67d42aa 100755
--- a/debian/kdump-tools.init
+++ b/debian/kdump-tools.init
@@ -27,9 +27,6 @@ KDUMP_DEFAULTS=/etc/default/kdump-tools
case "$1" in
start)
- if init_is_upstart; then
- exit 1
- fi
#
# If we have a /proc/vmcore, then we just kdump'ed
#
@@ -51,9 +48,6 @@ case "$1" in
fi
;;
stop)
- if init_is_upstart; then
- exit 1
- fi
echo -n "Stopping $DESC: "
$KDUMP_SCRIPT unload
;;
@@ -61,9 +55,6 @@ case "$1" in
$KDUMP_SCRIPT status
;;
restart|force-reload)
- if init_is_upstart; then
- exit 1
- fi
# alias the required 'force-reload' option
$KDUMP_SCRIPT unload
$KDUMP_SCRIPT load
diff --git a/debian/kdump-tools.upstart b/debian/kdump-tools.upstart
deleted file mode 100644
index fd3ba73..0000000
--- a/debian/kdump-tools.upstart
+++ /dev/null
@@ -1,46 +0,0 @@
-# kdump-tools
-
-description "kdump-tools"
-author "Louis Bouchard <louis.bouchard@ubuntu.com>"
-
-start on starting rc-sysinit
-stop on runlevel [!2345]
-
-console output
-
-task
-
-script
- PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
- . /lib/lsb/init-functions
- . /lib/init/vars.sh
-
- VMCORE_FILE=/proc/vmcore
- KDUMP_SCRIPT=/usr/sbin/kdump-config
- KDUMP_DEFAULTS=/etc/default/kdump-tools
- [ -r $KDUMP_DEFAULTS ] && . $KDUMP_DEFAULTS
-
- [ ${USE_KDUMP:-0} -ne 0 ] || exit 0;
-
- #
- # If we have a /proc/vmcore, then we just panic'd
- #
- if [ -e $VMCORE_FILE -a -s $VMCORE_FILE ]; then
- $KDUMP_SCRIPT savecore
- if [ $? -ne 0 -a -n "$KDUMP_FAIL_CMD" ] ; then
- $KDUMP_FAIL_CMD ;
- else
- #
- # Since we panic'd, reboot to a normal system
- #
- date -R ;
- reboot -f ;
- fi
- #
- # Else, we've just booted and need to load the kdump kernel
- #
- else
- $KDUMP_SCRIPT load
- fi
-end script