[Pkg-mono-svn-commits] rev 615 - xsp-snapshot/trunk/debian/official
Pablo Fischer
pabl0-guest@haydn.debian.org
Mon, 19 Apr 2004 20:55:50 -0600
Author: pabl0-guest
Date: 2004-04-19 20:55:47 -0600 (Mon, 19 Apr 2004)
New Revision: 615
Modified:
xsp-snapshot/trunk/debian/official/mono-server.postinst
xsp-snapshot/trunk/debian/official/mono-server.postrm
xsp-snapshot/trunk/debian/official/mono-xsp.postinst
xsp-snapshot/trunk/debian/official/mono-xsp.postrm
xsp-snapshot/trunk/debian/official/mono-xsp.preinst
xsp-snapshot/trunk/debian/official/mono-xsp.prerm
Log:
I noted that the daemon was not starting when the user boots the computer,
there reason is that in postinst (and postrm) there's no update-rc.d to
add the daemons to the init levels.. so here's the fix :-)
Modified: xsp-snapshot/trunk/debian/official/mono-server.postinst
===================================================================
--- xsp-snapshot/trunk/debian/official/mono-server.postinst 2004-04-20 02:54:35 UTC (rev 614)
+++ xsp-snapshot/trunk/debian/official/mono-server.postinst 2004-04-20 02:55:47 UTC (rev 615)
@@ -60,6 +60,9 @@
db_get monoserver/monoserver_autostart || true
if [ "$RET" = "true" ]; then
activate_monoserver
+ if [ -x "/etc/init.d/mono-server" ]; then
+ update-rc.d mono-server defaults >/dev/null
+ fi
else
deactivate_monoserver
fi
Modified: xsp-snapshot/trunk/debian/official/mono-server.postrm
===================================================================
--- xsp-snapshot/trunk/debian/official/mono-server.postrm 2004-04-20 02:54:35 UTC (rev 614)
+++ xsp-snapshot/trunk/debian/official/mono-server.postrm 2004-04-20 02:55:47 UTC (rev 615)
@@ -5,6 +5,10 @@
case "$1" in
purge)
rm -Rf "$monoserverconfd/*"
+ . /usr/share/debconf/confmodule
+ db_purge
+ #update-rc.d
+ update-rc.d -f mono-server remove >/dev/null
;;
esac
exit 0
Modified: xsp-snapshot/trunk/debian/official/mono-xsp.postinst
===================================================================
--- xsp-snapshot/trunk/debian/official/mono-xsp.postinst 2004-04-20 02:54:35 UTC (rev 614)
+++ xsp-snapshot/trunk/debian/official/mono-xsp.postinst 2004-04-20 02:55:47 UTC (rev 615)
@@ -78,8 +78,12 @@
case "$1" in
configure)
db_get xsp/xsp_autostart || true
- if [ "$RET" = "true" ]; then
+ if [ "$RET" = "true" ]; then
activate_xsp
+ if [ -x "/etc/init.d/mono-xsp" ]; then
+ update-rc.d mono-xsp defaults >/dev/null
+ fi
+
else
deactivate_xsp
fi
Modified: xsp-snapshot/trunk/debian/official/mono-xsp.postrm
===================================================================
--- xsp-snapshot/trunk/debian/official/mono-xsp.postrm 2004-04-20 02:54:35 UTC (rev 614)
+++ xsp-snapshot/trunk/debian/official/mono-xsp.postrm 2004-04-20 02:55:47 UTC (rev 615)
@@ -5,6 +5,13 @@
case "$1" in
purge)
rm -Rf "$xspconfd/*"
+ #Purge debconf
+ . /usr/share/debconf/confmodule
+ db_purge
+ #update-rc.d
+ update-rc.d -f mono-xsp remove >/dev/null
+
;;
esac
+
exit 0
Modified: xsp-snapshot/trunk/debian/official/mono-xsp.preinst
===================================================================
--- xsp-snapshot/trunk/debian/official/mono-xsp.preinst 2004-04-20 02:54:35 UTC (rev 614)
+++ xsp-snapshot/trunk/debian/official/mono-xsp.preinst 2004-04-20 02:55:47 UTC (rev 615)
@@ -27,4 +27,5 @@
;;
esac
+
exit 0
Modified: xsp-snapshot/trunk/debian/official/mono-xsp.prerm
===================================================================
--- xsp-snapshot/trunk/debian/official/mono-xsp.prerm 2004-04-20 02:54:35 UTC (rev 614)
+++ xsp-snapshot/trunk/debian/official/mono-xsp.prerm 2004-04-20 02:55:47 UTC (rev 615)
@@ -29,5 +29,6 @@
fi
;;
esac
+
exit 0