view debian/prerm @ 328:3841bbff35d5 noffle

[svn] added xinetd example configuration
author godisch
date Mon, 24 Feb 2003 06:26:30 +0000
parents c36eb2596531
children 56c3a43af1d5
line wrap: on
line source

#!/bin/sh
# $Id: prerm 460 2003-02-23 15:16:46Z godisch $

set -e
. /usr/share/debconf/confmodule
db_version 2.0

if [ -x /usr/sbin/invoke-rc.d ]; then
	invoke-rc.d noffle stop
elif [ -x /etc/init.d/noffle ]; then
	/etc/init.d/noffle stop
fi

if [ -e /usr/share/debconf/confmodule ]; then
	db_get noffle/port || RET=""
	port="$RET"
	[ -z "$port" -o "$port" = 119 ] && port=nntp
	update-inetd --disable $port
fi

db_stop
exit 0