#780403 debian-policy: Define what should happen when installing a package and the init script fails to start it #780403
- Package:
- debian-policy
- Source:
- debian-policy
- Submitter:
- Ivan Baldo
- Date:
- 2024-05-28 09:27:04 UTC
- Severity:
- normal
- Tags:
What should happen if installing a package and then when it tries to start its service it fails? Currently the most common behaviour seems to be that the installation fails. But is that the best outcome? What if the sysadmin has a reverse proxy listening on port 80 and then decides to install Apache or Nginx? The init script fails until it changes the port to 8080 for example, but shouldn't the package just install fine anyway? It could be said that a failure to startup is not a failure to install; the package is installed fine but configured wrong. What if one wants to install Nginx as a frontend to static files and delegate dynamic pages to Apache? Maybe for the sake of flexibility and not so standard setups, init script failure could be defined to not cause install failure. For example, change this in postinst: invoke-rc.d <service> start || exit $? to this: invoke-rc.d <service> start || true See for example: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779825 Thanks for considering! Have a good day.
Ivan Baldo <ibaldo@adinet.com.uy> writes: Currently, Policy leaves this to the discretion of the package maintainer. To change that, what will be needed here is not just an argument that other behaviors besides failing installation might be desirable, but that there is a compelling need to standardize this behavior across the entire archive instead of leaving it to the discretion of the maintainer. I think it might be better to start with filing bugs against the specific packages that you want to run in non-standard configurations, where the abort on service start failure behavior is interfering with your ability to do that, and then see what the package maintainers say.
Ivan Baldo <ibaldo@adinet.com.uy> writes: Currently, Policy leaves this to the discretion of the package maintainer. To change that, what will be needed here is not just an argument that other behaviors besides failing installation might be desirable, but that there is a compelling need to standardize this behavior across the entire archive instead of leaving it to the discretion of the maintainer. I think it might be better to start with filing bugs against the specific packages that you want to run in non-standard configurations, where the abort on service start failure behavior is interfering with your ability to do that, and then see what the package maintainers say.
Russ> Ivan Baldo <ibaldo@adinet.com.uy> writes:
>> What should happen if installing a package and then when it tries
>> to start its service it fails?
>> Currently the most common behaviour seems to be that the
>> installation fails.
>> But is that the best outcome?
Russ> Currently, Policy leaves this to the discretion of the package
Russ> maintainer. To change that, what will be needed here is not
Russ> just an argument that other behaviors besides failing
Russ> installation might be desirable, but that there is a
Russ> compelling need to standardize this behavior across the entire
Russ> archive instead of leaving it to the discretion of the
Russ> maintainer.
I find this issue tends to come up a lot more than it used to. The
issue is that systemd units tend to track a lot more errors than init
scripts. So, in Jessie, there tend to be a lot more cases where a
package will fail to install under the same situations where in wheezy
it'd install fine. The problem is made more complex by debhelper, which
makes it somewhat annoying (especially in dh 7 mode) to express this
maintainer preference. So, you have a lot of dh7 packages that suddenly
got much more picky because people created service units.
In general, packages maintainer scripts should not fail without a compelling reason. A package installation failure leaves the packaging system in a state where it is much harder to recover from problems. Cheers,
Laba diena, Noriu Jus informuoti apie šių metų pasikeitimą dėl atnaujintos visos Lietuvos įmonių bazės 2018 metų sausio vidurio. Visi juridiniai asmenys pateikti bazėje yra veikiantys, realiai vykdantys veiklą, turintys įdarbintų darbuotojų. Duomenys pagal Sodrą, Registrų centrą. Bazėje nurodoma ir apyvarta, darbuotojų atlyginimai, darbuotojų skaičius, transporto skaičius ir daug kitų duomenų, kuriuos matysite pavyzdyje. Duomenis galima filtruoti pagal veiklas, miestus ir kitus duomenis. Šią bazę verta turėti visoms įmonėms. Pateiksiu priežastis: 1) Kontaktai pateikti bazėje direktorių ir kitų atsakingų asmenų, didelė tikimybė Jums surasti naujų klientų, partnerių, tiekėjų, kai tiesiogiai bendrausite su direktoriais, komercijos vadovais. 2) Konkurentų analizavimas, tiekėjų atsirinkimas pagal Jums reikalingus kriterijus, galite atsifiltruoti pagal įmonės dydį, bazėje nurodoma kiek įmonės skolingos Sodrai. 3) Lengva, greita ir patogu dirbti su šia baze, elektroninius pašto adresus galite importuoti į elektroninių laiškų siuntimo programas ar sistemas iš kurių siunčiate elektroninius laiškus. Taip pat galite importuoti mobiliųjų telefonų numerius į SMS siuntimo programas. Išsirinkite iš "Veiklų sąrašo" veiklas kurių Jums reikia. ( Sąrašas prisegtas laiške excel faile ) Parašykite, kurias veiklas išsirinkote ir atsiųsime pavyzdį ir pasiūlymą su sąlygomis įmonių bazei įsigyti Pagarbiai, Tadas Giedraitis Tel. nr. +37067881041
Sveiki, Ar Jums reikia bendrijų bazės? Daugiabučių, gyvenamųjų namų, sodų bendrijų bazė su pirmininkų kontaktais Bazėje nurodomi šie duomenys Bendrijos pavadinimas Bendrijos kodas SD kodas Įregistravimo data Darbuotojų skaičius Elektroninio pašto adresas Mobilus telefonas Bendrijos adresas Miestas Pašto kodas Bendrijos pirmininko vardas pavardė Visos bendrijos veikiančios su pirmininkų kontaktais Bendrijų bazę galima filtruoti pagal miestus, registracijos datą Ši bazė gali būti naudinga ieškant klientų Ar Jums atsiųsti bendrijų bazės pavyzdį su pasiūlymu? Turime ir asociacijų, valstybinių institucijų, įmonių, ūkininkų bazių. Kokių Jums dar reikia bazių? Taip pat siunčiame naujienlaiškius Išrašome sąskaitą faktūrą Pagarbiai, Egidijus Stanaitis +370 603 160 22 teraditas@gmail.com
Saludos, Me estoy comunicando en nombre de mi cliente fallecido quien falleció el 6 de febrero de 2023 como consecuencia del terremoto Turquía-Siria, soy su abogado y quiero que usted solicite sus fondos como su familiar más cercano ya que tiene la misma familia. apellido y nacionalidad que usted, por favor responda para obtener más detalles. Saludos. Avukat Ahmet Gürcan ESQ. Istanbul, Turquía.