summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoey <joey>2004-06-29 00:03:54 +0000
committerjoey <joey>2004-06-29 00:03:54 +0000
commitad092508ea530253700749a3119bf8a24dcc162e (patch)
tree9c5bcde32f8bea565082d18d9e749c39741309b6 /autoscripts
parent62d0cab3e04ec95e5c62a58d291018a1ebce228f (diff)
r1691: * dh_installinit: Added --error-handler option. Based on work by Thom May.
Closes: #209090
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-init4
-rw-r--r--autoscripts/postinst-init-nostart2
-rw-r--r--autoscripts/postrm-init2
-rw-r--r--autoscripts/prerm-init4
-rw-r--r--autoscripts/prerm-init-norestart4
5 files changed, 8 insertions, 8 deletions
diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init
index b5bd7a5..8128cd9 100644
--- a/autoscripts/postinst-init
+++ b/autoscripts/postinst-init
@@ -1,8 +1,8 @@
if [ -x "/etc/init.d/#SCRIPT#" ]; then
update-rc.d #SCRIPT# #INITPARMS# >/dev/null
if [ -x /usr/sbin/invoke-rc.d ]; then
- invoke-rc.d #SCRIPT# start
+ invoke-rc.d #SCRIPT# start || #ERROR_HANDLER#
else
- /etc/init.d/#SCRIPT# start
+ /etc/init.d/#SCRIPT# start || #ERROR_HANDLER#
fi
fi
diff --git a/autoscripts/postinst-init-nostart b/autoscripts/postinst-init-nostart
index 5d882b6..7a1bd5e 100644
--- a/autoscripts/postinst-init-nostart
+++ b/autoscripts/postinst-init-nostart
@@ -1,3 +1,3 @@
if [ -x "/etc/init.d/#SCRIPT#" ]; then
- update-rc.d #SCRIPT# #INITPARMS# >/dev/null
+ update-rc.d #SCRIPT# #INITPARMS# >/dev/null || #ERROR_HANDLER#
fi
diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init
index 1c29298..628ece6 100644
--- a/autoscripts/postrm-init
+++ b/autoscripts/postrm-init
@@ -1,3 +1,3 @@
if [ "$1" = "purge" ] ; then
- update-rc.d #SCRIPT# remove >/dev/null
+ update-rc.d #SCRIPT# remove >/dev/null || #ERROR_HANDLER#
fi
diff --git a/autoscripts/prerm-init b/autoscripts/prerm-init
index eab98c7..014fa9a 100644
--- a/autoscripts/prerm-init
+++ b/autoscripts/prerm-init
@@ -1,7 +1,7 @@
if [ -x "/etc/init.d/#SCRIPT#" ]; then
if [ -x /usr/sbin/invoke-rc.d ] ; then
- invoke-rc.d #SCRIPT# stop
+ invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER#
else
- /etc/init.d/#SCRIPT# stop
+ /etc/init.d/#SCRIPT# stop || #ERROR_HANDLER#
fi
fi
diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart
index fb99152..0f64c45 100644
--- a/autoscripts/prerm-init-norestart
+++ b/autoscripts/prerm-init-norestart
@@ -1,7 +1,7 @@
if [ -x "/etc/init.d/#SCRIPT#" ] && [ "$1" = remove ]; then
if [ -x /usr/sbin/invoke-rc.d ] ; then
- invoke-rc.d #SCRIPT# stop
+ invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER#
else
- /etc/init.d/#SCRIPT# stop
+ /etc/init.d/#SCRIPT# stop || #ERROR_HANDLER#
fi
fi