diff options
author | chip <chip> | 2002-09-16 01:56:32 +0000 |
---|---|---|
committer | chip <chip> | 2002-09-16 01:56:32 +0000 |
commit | e2d471f26fe47530d1d8fee9fdf1330203d458bc (patch) | |
tree | 9cd58aea5921fe5b68531df1accc905122375f20 /debian/nfs-common.postinst | |
parent | 253a4182bcdb46a4da412513ba5880e352a8fa93 (diff) | |
download | nfs-utils-e2d471f26fe47530d1d8fee9fdf1330203d458bc.tar.gz nfs-utils-e2d471f26fe47530d1d8fee9fdf1330203d458bc.tar.xz nfs-utils-e2d471f26fe47530d1d8fee9fdf1330203d458bc.zip |
* Start nfs-common after nfs-kernel-server so that the server is running
when statd restarts. In postinst, remove bad rc.d links from old
packages. From Philippe Troin <phil@fifi.org>. (closes: #160800)
* Make init scripts exit with non-zero status when daemons don't start.
* Add titles to templates where I forgot them. (closes: #158489)
* Add /etc/default/{nfs-common,nfs-kernel-server} so setting random
parameters doesn't require editing init scripts. (closes: #131539)
* Split templates into separate files, and add French templates.
(closes: #134630)
* Use invoke-rc.d to avoid premature daemon starts. (closes: 158574)
* Change priority of nfs-kernel-server to 'optional'.
Diffstat (limited to 'debian/nfs-common.postinst')
-rwxr-xr-x | debian/nfs-common.postinst | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/debian/nfs-common.postinst b/debian/nfs-common.postinst index 37eba1a..0b9e3bd 100755 --- a/debian/nfs-common.postinst +++ b/debian/nfs-common.postinst @@ -4,10 +4,17 @@ case "$1" in configure) - update-rc.d nfs-common defaults 19 81 >/dev/null + if [ "$2" != "" -a "$2" != "<unknown>" ] \ + && dpkg --compare-versions "$2" lt "1:1.0-3" \ + || ( dpkg --compare-versions "$2" ge "1:1.0.1" \ + && dpkg --compare-versions "$2" lt "1:1.0.2-1" ) + then + update-rc.d -f nfs-common-remove >/dev/null + fi + update-rc.d nfs-common defaults 21 79 >/dev/null ;; esac act="restart" [ "$1:$2" = "configure:" ] && act="start" -/etc/init.d/nfs-common $act +invoke-rc.d nfs-common $act |