[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: initscripts: using "/etc/init.d/<package>"



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eugene V. Lyubimkin wrote:
> Russ Allbery wrote:
>> "Eugene V. Lyubimkin" <jackyf.devel@gmail.com> writes:
> 
>>> "The package maintainer scripts must use invoke-rc.d to invoke the
>>> /etc/init.d/* initscripts, instead of calling them directly."
>>>
>>> Then, but, it say:
>>>
>>> "Most packages will simply need to change:
>>>      /etc/init.d/<package>
>>>              <action>
>>>
>>> in their postinst and prerm scripts to:
>>>
>>>       if which invoke-rc.d >/dev/null 2>&1; then
>>>       invoke-rc.d package <action>
>>>       else
>>>       /etc/init.d/package <action>
>>>       fi
>>> "
>>> ... which is fallback to using /etc/init.d directly if 'invoke-rc.d' is
>>> missing. But, how it can be? The package 'sysv-rc' that contains
>>> 'invoke-rc.d' has 'required' priority.
>> Required priority doesn't mean that you can assume the package is always
>> there.  You still have to declare explicit dependencies or fall back if
>> it's not unless the package is marked essential, which sysv-rc is not.
> 
> Ok, thanks for explanation.
Sorry, disregard last line, please, I've read you discussion with Steve
Langasek now.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhx9qcACgkQchorMMFUmYyUCQCgs320UDBMVxEewX9WCyaUFXvh
DlQAoL6NiPYZFi50Qh4E0wK4CsMXrAr+
=4PiG
-----END PGP SIGNATURE-----


Reply to: