summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ed5be3c)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
This version enables inetd_compat mode by default, so that we can pretend to
be a real inet-superserver. This way, packages that use update-inetd will
This version enables inetd_compat mode by default, so that we can pretend to
be a real inet-superserver. This way, packages that use update-inetd will
- work with xinetd properly.
+ work with xinetd properly. The inetd_compat mode is forced for new
+ installations only, and can be tweaked in /etc/default/xinetd.
Note that if the same service is configured in /etc/xinetd.d/ and in
Note that if the same service is configured in /etc/xinetd.d/ and in
- /etc/inetd.conf, the former takes precedence.
+ /etc/inetd.conf, the former takes precedence, based on the service id.
-- Pierre Habouzit <madcoder@debian.org> Tue, 27 Nov 2007 01:55:29 +0100
-- Pierre Habouzit <madcoder@debian.org> Tue, 27 Nov 2007 01:55:29 +0100
debian/xinetd.defaults -> debian/xinetd.default.
* debian/xinetd.postrm: don't purge configuration that isn't ours on purge
anymore.
debian/xinetd.defaults -> debian/xinetd.default.
* debian/xinetd.postrm: don't purge configuration that isn't ours on purge
anymore.
+ * Don't force inetd_compat for upgrades.
-- Pierre Habouzit <madcoder@debian.org> Wed, 28 Nov 2007 10:14:47 +0100
-- Pierre Habouzit <madcoder@debian.org> Wed, 28 Nov 2007 10:14:47 +0100
+if test "$1" = "configure"; then
+ if dpkg --compare-versions "$2" lt-nl 1:2.3.14-3; then
+ sed -e -i "s/INETD_COMPAT=Yes/INETD_COMPAT=No/" /etc/default/xinetd
+ fi
+fi
+
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d xinetd stop
elif [ -x /etc/init.d/xinetd ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d xinetd stop
elif [ -x /etc/init.d/xinetd ]; then