Issue #663 has been updated by David Coutadeur. Status changed from New to Closed % Done changed from 0 to 100
Correction made in r348 OpenLDAP LTB deb packages are now compatible with ubuntu (tested on 32 bit platform) ---------------------------------------- Bug #663: OpenLDAP LTB package not compatible with ubuntu lucinda 13.10 http://tools.lsc-project.org/issues/663 Author: David Coutadeur Status: Closed Priority: Normal Assigned to: David Coutadeur Category: OpenLDAP DEB Target version: openldap-deb-? The bug is reported by Frederic and is pasted below. (french) Environnement : ============== Distributor ID: Ubuntu Description: Ubuntu 13.10 Release: 13.10 Codename: saucy fred@ubuntu-dev-python:~$ dpkg -l openldap-ltb Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder | État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements |/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais) ||/ Nom Version Architecture Description +++-=====================================================-===============================-===============================-=============================================================================================================== ii openldap-ltb 2.4.39-1 i386 OpenLDAP server with addons from the LDAP Tool Box project Symptômes : =========== Impossible d'installer le paquet. fichier : /var/lib/dpkg/info/openldap-ltb.prerm ligne 54 : /etc/init.d/rsyslog restart > /dev/null 2>&1 Sous cette version d'ubuntu, le redémarrage du démon est désormais gérer par upstart. Si tu tentes de redémarrer le service avec la commande précédente, le script charge les fonctions partagées : /lib/lsb/init-functions et appelle la fonction suivante lors des phases d'arret, de démarrage et de redémarrage du démon : init_is_upstart() { if [ -x /sbin/initctl ] && /sbin/initctl version 2>/dev/null | /bin/grep -q upstart; then return 0 fi return 1 } En cas de retour en erreur (code 0) le script de démarrage sort en erreur (exit 1). Voici la commande a utilisée pour redémarrer le démon : initctl restart rsyslog Une solution: ============= La solution que je propose est de charger la lib /lib/lsb/init-functions et tester la présence de la fonction, et de l'exécuter au besoin pour détecter quelle commande utilisée. source /lib/lsb/init-functions declare -f init_is_upstart retourne 0 si la fonction existe, sinon 1 -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://tools.lsc-project.org/my/account
_______________________________________________ ltb-dev mailing list [email protected] http://lists.ltb-project.org/listinfo/ltb-dev
