Uninstalling package do not disable module making PHP cron to crash

Bug #1627068 reported by David Fischer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-geoip (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello,

Last day we installed the package php5-geoip, enabled it and then, few days after that, removed it.
We then had an issue, the crontab, /etc/cron.d/php5, setup by the package php5-common, crashed.

In order to prevent this issue, we are wondering if it could be possible to update the uninstall hook in order to disable the GeoIP extension when the package is removed?

Best Regards,

David Fischer

Here is the error:

Cron [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/geoip.so' - /usr/lib/php5/20090626/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0

Tags: cleanup
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.