Re: Bug#4122: update-rc.d failed

1996-08-14 Thread Ian Jackson
Brian C. White writes ("Bug#4122: update-rc.d failed"):
...
>   echo "- Installing 'start' ..."
>   update-rc.d genpowerd start 11 1 2 3 4 5
>   echo "- Installing 'stop' ..."
>   update-rc.d genpowerd stop  99 0
...
>   shift: shift count must be <= $#
...
> I could not find any installed packages on my system that use
> the "start" and "stop" commands instead of "defaults".

Hmm.  You should have had a usage message instead of the internal
error.  This will be fixed in dpkg 1.3.6.

The usage message is rather cryptic, but it does say

] usage: update-rc.d  remove
]update-rc.d  defaults [ |  ]
]update-rc.d  start|stop.  ...
^
that you need a dot at the end of the argument list.

You should replace your two calls with one:
   update-rc.d genpowerd start 11 1 2 3 4 5 . stop 99 0 .

I'll close this bug report now.

Ian.




Bug#4122: update-rc.d failed

1996-08-13 Thread Brian C. White
Package: dpkg
Version: 1.2.13elf

I'm trying to package "genpower" (a UPS monitoring daemon), but am having
trouble with the postinst:

  #! /bin/sh -e
  #
  # postinst file for genpower
  echo "- Installing 'start' ..."
  update-rc.d genpowerd start 11 1 2 3 4 5
  echo "- Installing 'stop' ..."
  update-rc.d genpowerd stop  99 0

The results of this are:

  Selecting previously deselected package genpower.
  (Reading database ... 14718 files and directories currently installed.)
  Unpacking genpower (from ../genpower_1.0.1-1_i386.deb) ...
  Setting up genpower (1.0.1-1) ...
  - Installing 'start' ...
   Adding system startup links pointing to /etc/init.d/genpowerd ...
 rc1.d/S11genpowerd -> ../init.d/genpowerd
 rc2.d/S11genpowerd -> ../init.d/genpowerd
 rc3.d/S11genpowerd -> ../init.d/genpowerd
 rc4.d/S11genpowerd -> ../init.d/genpowerd
 rc5.d/S11genpowerd -> ../init.d/genpowerd
  shift: shift count must be <= $#
  dpkg: error processing genpower (--install):
   subprocess post-installation script returned error exit status 1
  Errors were encountered while processing:
   genpower

I could not find any installed packages on my system that use
the "start" and "stop" commands instead of "defaults".

Brian
   ( [EMAIL PROTECTED] )

---
In theory, theory and practice are the same.  In practice, they're not.