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

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



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

Hi all!

Policy 3.8.0.1, 9.3.3, "running initscripts" say:

"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.

I'm in a little confusion.


- --
Eugene V. Lyubimkin aka JackYF, Ukrainian C++ developer.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIcSr3chorMMFUmYwRAqwsAJ9t7GBeybLH0xHX163gbVv4chdIZgCgqRT4
xLcvI3XPTIbEeF82z8kbQaY=
=tmjV
-----END PGP SIGNATURE-----


Reply to: