removed manual init script (de)installation, replaced with dh_installinit;

renamed livesupport-station.init.d to livesupport-station.init
This commit is contained in:
fgerlits 2005-08-08 18:17:24 +00:00
parent ff1cd97706
commit 974be492ae
5 changed files with 1 additions and 23 deletions

View File

@ -30,13 +30,6 @@ case "$1" in
$installdir/bin/postInstallStation.sh --directory $installdir \
--apache-group $apache_group \
--www-root $apache_docroot
# register and start the livesupport scheduler daemon
update-rc.d livesupport-station defaults 92 || true
if command -v invoke-rc.d >/dev/null 2>&1 ; then
invoke-rc.d livesupport-station start || true
else
/etc/init.d/livesupport-station start || true
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)

View File

@ -46,13 +46,6 @@ check_exe() {
case "$1" in
remove|upgrade|failed-upgrade|abort-install|abort-upgrade)
# remove the init script by hand
# this is an ugly hack, dpkg should remove it!
rm -f /etc/init.d/livesupport-station
# remove the livesupport scheduler daemon as a service
update-rc.d livesupport-station remove
# remove the symlink to the livesupport web pages
rm -f $apache_docroot/livesupport

View File

@ -19,14 +19,6 @@ set -e
case "$1" in
remove|upgrade|deconfigure)
# stop and remove the livesupport scheduler daemon
if command -v invoke-rc.d >/dev/null 2>&1 ; then
invoke-rc.d livesupport-station stop || true
invoke-rc.d livesupport-station kill || true
else
/etc/init.d/livesupport-station stop || true
/etc/init.d/livesupport-station kill || true
fi
;;
failed-upgrade)
;;

View File

@ -148,7 +148,7 @@ binary-common:
# dh_installemacsen
# dh_installpam
# dh_installmime
dh_installinit
dh_installinit --update-rcd-params="defaults 92"
# dh_installcron
# dh_installinfo
# dh_installman