Package: php4-sqlite
Version: 1.0.2-6
Severity: minor
Tags: patch
Hello,
Originally, php4-sqlite postinst gives false alarms which could be avoided:
/usr/sbin/apachectl is not executable, exiting
Restarting apache-ssl.
The postinst script checks for executability of files in /etc/init.d/ but
packages leave their files in there on package removal so it would be more
proper to also check running instances before checking files in /etc/init.d
to focus only on running servers to restart.
Here's the patch, please apply:
:~# diff -u /var/lib/dpkg/info/php4-sqlite.postinst~
/var/lib/dpkg/info/php4-sqlite.postinst
--- /var/lib/dpkg/info/php4-sqlite.postinst~ 2005-03-31
08:54:05.613843224 +0200
+++ /var/lib/dpkg/info/php4-sqlite.postinst 2005-03-31
08:54:05.614849397 +0200
@@ -16,11 +16,13 @@
# Restart apache(s) so settings get refreshed
if [ -d /etc/php4/apache/ ]; then
for srv in apache apache-ssl apache-perl; do
- if [ -x "/etc/init.d/$srv" ]; then
- if [ -x /usr/sbin/invoke-rc.d ]; then
- /usr/sbin/invoke-rc.d $srv restart
- else
- /etc/init.d/$srv restart
+ if pidof $srv; then
+ if [ -x "/etc/init.d/$srv" ]; then
+ if [ -x /usr/sbin/invoke-rc.d ]; then
+ /usr/sbin/invoke-rc.d $srv restart
+ else
+ /etc/init.d/$srv restart
+ fi
fi
fi
done
Thanks.
Regards,
Csani
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages php4-sqlite depends on:
ii libapache-mod-php4 [phpapi- 4:4.3.10-9 server-side, HTML-embedded scripti
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libsqlite0 2.8.16-1 SQLite shared library
ii php4-cgi [phpapi-20020918-z 4:4.3.10-9 server-side, HTML-embedded scripti
ii php4-cli [phpapi-20020918-z 4:4.3.10-9 command-line interpreter for the p
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]