* Only start nfs-common in runlevel S; it doesn't need to be started
more than once (and startpar won't actually run it more than once,
anyway). Closes: #510528.
+ * Fix obsolete invocations of update-rc.d by switching nfs-common to use
+ dh_installinit. Closes: #736059.
-- Steve Langasek <vorlon@debian.org> Mon, 13 Jan 2014 22:19:43 +0000
set -e
-#DEBHELPER#
-
case "$1" in
configure)
ucf --three-way /usr/share/nfs-common/conffiles/idmapd.conf /etc/idmapd.conf
if [ "$2" != "" ] && dpkg --compare-versions "$2" lt 1:1.1.0-10; then
update-rc.d -f nfs-common remove >/dev/null
fi
- update-rc.d nfs-common start 20 2 3 4 5 . stop 20 0 1 6 . start 44 S . >/dev/null
if ! getent passwd statd >/dev/null; then
adduser --system --home /var/lib/nfs --no-create-home statd
;;
esac
-act="restart"
-[ "$1:$2" = "configure:" ] && act="start"
-invoke-rc.d nfs-common $act
+#DEBHELPER#
case "$1" in
purge)
- update-rc.d nfs-common remove >/dev/null
-
for FILE in /etc/default/nfs-common /etc/idmapd.conf; do
# Taken from the ucf example postrm
for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do
#DEBHELPER#
-case "$1" in
- remove|purge)
- [ -x /etc/init.d/nfs-common ] &&
- invoke-rc.d nfs-common stop
- ;;
-esac
-
if [ "$1" != upgrade ]
then
rm -f /var/lib/nfs/sm/* \
dh_install -Xman --fail-missing
dh_installdocs -A
dh_installdocs -pnfs-common debian/README.Debian.nfsv4
- install -m 0755 debian/nfs-common.init debian/nfs-common/etc/init.d/nfs-common
+ dh_installinit -pnfs-common -R
install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server
install -m 0644 debian/nfs-common.bugcontrol debian/nfs-common/usr/share/bug/nfs-common/control
install -m 0755 debian/nfs-common.bugscript debian/nfs-common/usr/share/bug/nfs-common/script