diff options
Diffstat (limited to 'debian/exim4-daemon-custom.postinst')
-rw-r--r-- | debian/exim4-daemon-custom.postinst | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/exim4-daemon-custom.postinst b/debian/exim4-daemon-custom.postinst new file mode 100644 index 0000000..f76328a --- /dev/null +++ b/debian/exim4-daemon-custom.postinst @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +case "$1" in + configure) + + # needed for woody: "start" will fail on dpkg-reconfigure because + # daemon is already running. + # Afaik this has changed, dpkg-reconfigure from sid/sarge will call + # prerm on reconfigure. + # || true is needed for succesfull installation with configtype 'none' + if [ -x /etc/init.d/exim4 ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d exim4 start || invoke-rc.d exim4 reload || true + else + /etc/init.d/exim4 start || /etc/init.d/exim4 reload || true + fi + fi + db_stop + + ;; +esac + +#DEBHELPER# |