Wrong parameter for update-rc.d in Debian

2009-07-21
2012-08-14
  • Hi,

    "postinst" script in .DEB package has wrong info

    Quote (last lines):

    Debian specific set up for rxapid

    cp ${orx_prefix}/bin/rxapid /etc/init.d
    update-rc.d rxapid multiuser 89
    ldconfig
    /etc/init.d/rxapid start

    The script goes OK when "multiuser" is replaced with "defaults".
    update-rc.d rxapid multiuser 89 -->> update-rc.d rxapid defaults 89

    See the message:

    dpkg -i oorexx-4.0.0-4912-rc2.i386.deb

    Selecting previously deselected package oorexx.
    (Reading database ... 46836 files and directories currently installed.)
    Unpacking oorexx (from oorexx-4.0.0-4912-rc2.i386.deb) ...
    Setting up oorexx (4.0.0-4912) ...
    update-rc.d: warning: /etc/init.d/rxapid missing LSB information
    update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
    usage: update-rc.d [-n] [-f] <basename> remove
    update-rc.d [-n] <basename> defaults [NN | SS KK]
    update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
    -n: not really
    -f: force
    Starting rxapi:
    ...(cut)...

    Running corrected "postinst":

    root@tytan:/etc/init.d# ./postinst
    update-rc.d: warning: /etc/init.d/rxapid missing LSB information
    update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
    Adding system startup for /etc/init.d/rxapid ...
    /etc/rc0.d/K89rxapid -> ../init.d/rxapid
    /etc/rc1.d/K89rxapid -> ../init.d/rxapid
    /etc/rc6.d/K89rxapid -> ../init.d/rxapid
    /etc/rc2.d/S89rxapid -> ../init.d/rxapid
    /etc/rc3.d/S89rxapid -> ../init.d/rxapid
    /etc/rc4.d/S89rxapid -> ../init.d/rxapid
    /etc/rc5.d/S89rxapid -> ../init.d/rxapid

    I am able to install and run rxapid "manually", without the help of postinst and I am not interested what the message "missing LSB information" is all about. Changing "multiuser" to "defaults" gave me the expected results, but the DEB package should be corrected.

    Regards,
    Przemysław Pawełczyk
    http://pp.blast.pl

     
    • Mark Miesfeld
      Mark Miesfeld
      2009-07-21

      What debian-based OS and version are you on?

      I only see a warning that multi-user is deprecated, but the install goes fine.

      Anyhow, thanks for reporting that. I've intended to fix it before the next released build.

       
    • Hi,
      The latest one - Debian 5.0 i386 - NOT Ubuntu and the likes!
      Yes, the rest of the package were installed flawlessly.
      Thanks. :-)

      Regards
      pp