Re: subprocess installed pre-removal script returned error exit status 1
On Sun, Apr 3, 2011 at 7:15 PM, David Paleino <dapal@debian.org> wrote:
> Hello Mathieu,
>
> On Sun, 3 Apr 2011 19:03:30 +0200, Mathieu Malaterre wrote:
>
>> if [ -x "/etc/init.d/dcmqrscp" ]; then
>> if [ -x /usr/sbin/invoke-rc.d ]; then
>> invoke-rc.d --quiet dcmqrscp stop
>> else
>> /etc/init.d/dcmqrscp stop
>> fi
>> fi
>>
>> # Automatically added by dh_installinit
>> if [ -x "/etc/init.d/dcmqrscp" ]; then
>> invoke-rc.d dcmqrscp stop || exit $?
>> fi
>> # End automatically added section
>
> This is duplicate code. I suppose you wrote the first manually -- I suggest you
> to remove it, since dh_installinit is taking care of it already.
>
> Also, the error seem to be caused by this code. To find out, please add a "set
> -x" to the top of /etc/init.d/dcmqrscp, to find where it breaks.
Thanks David !
--
Mathieu
Reply to: