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

Re: dpkg can't purge init script



On Thu, Aug 23, 2001 at 11:35:56AM +0200, Eric Van Buggenhaut wrote:
> > >     *)
> > >         echo "prerm called with unknown argument \`$1'" >&2
> > >         exit 0
> > 
> > This should probably be "exit 1".
> 
> Well, my script is the exact copy of the skeleton found in
> /usr/share/debhelper/dh_make/debian/prerm.ex where it is "exit 0"

Hmm.  I still think I'm probably right; an error occurred.

> Again, /etc/init.d/superviser-server is a copy of the skeleton found in
> /usr/share/debhelper/debian/init.d.ex :
> [...]
> 
> Problem seems to be that prerm remove fails :
> 
> Because :
> 
> curitiba_POTATO:/# start-stop-daemon --stop --quiet --pidfile
> /var/run/superviser-server.pid --exec /usr/sbin/superviser-server.pl ; echo $?
> 1
> curitiba_POTATO:/#
> 
> 
> If you have any idea ...

As somebody pointed out in this thread, the call to start-stop-daemon
should use the --oknodo option.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

         Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
       Debian GNU/Linux Developer,  see http://people.debian.org/~jdg



Reply to: