From 2ec15dc9a53944a9e4f4d9db51bcca1e0b4f75fd Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 15 Dec 2008 18:54:54 +0000 Subject: [PATCH] Reload web server configuration instead of restart, thanks to a patch from Tiago Bortoletto Vaz. Closes: #508633. --- debian/changelog | 4 +++- debian/roundcube-core.postinst | 6 ++++-- debian/roundcube-core.postrm | 6 ++++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 5a69d33..45ce4b9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,10 @@ roundcube (0.2~alpha-4) UNRELEASED; urgency=low * Add missing ${misc:Depends} to make Lintian happy. * Add description to each patch. * Execute cron job only if the directory to clean exists. + * Reload web server configuration instead of restart, thanks to a patch + from Tiago Bortoletto Vaz. Closes: #508633. - -- Vincent Bernat Sun, 14 Dec 2008 10:37:47 +0100 + -- Vincent Bernat Mon, 15 Dec 2008 19:54:22 +0100 roundcube (0.2~alpha-3) experimental; urgency=high diff --git a/debian/roundcube-core.postinst b/debian/roundcube-core.postinst index 80a085a..5e7e0e2 100644 --- a/debian/roundcube-core.postinst +++ b/debian/roundcube-core.postinst @@ -151,10 +151,12 @@ EOF if [ "$res" = "true" ]; then for webserver in $restart; do webserver=${webserver%,} + # Redirection of 3 is needed because Debconf uses it and it might + # be inherited by webserver. See bug #446324. if [ -x /usr/sbin/invoke-rc.d ]; then - invoke-rc.d $webserver restart + invoke-rc.d $webserver reload 3>/dev/null || true else - /etc/init.d/$webserver restart + /etc/init.d/$webserver reload 3>/dev/null || true fi done fi diff --git a/debian/roundcube-core.postrm b/debian/roundcube-core.postrm index 1e0467b..6659a77 100644 --- a/debian/roundcube-core.postrm +++ b/debian/roundcube-core.postrm @@ -73,10 +73,12 @@ case "$1" in if [ "$res" = "true" ]; then for webserver in $restart; do webserver=${webserver%,} + # Redirection of 3 is needed because Debconf uses it and it might + # be inherited by webserver. See bug #446324. if [ -x /usr/sbin/invoke-rc.d ]; then - invoke-rc.d $webserver restart + invoke-rc.d $webserver reload 3>/dev/null || true else - /etc/init.d/$webserver restart + /etc/init.d/$webserver reload 3>/dev/null || true fi done fi -- 2.39.2