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

Re: Pinto package.



Hi Gregor,

On 08/26/2013 09:57 PM, gregor herrmann wrote:
On Sun, 25 Aug 2013 21:12:17 +0000, Oleg Gashev wrote:

   - I guess pintod should be started in .postinst insted of stopped, and
    stopped in .postrm

It's actions automatically added by dh_installinit.

I see in the source package:

% cat debian/pinto.postinst
[..]
     invoke-rc.d pinto stop
fi

#DEBHELPER#

pinto.prerm.debhelper:

# Automatically added by dh_installinit
if [ -x "/etc/init.d/pinto" ]; then
	invoke-rc.d pinto stop || exit $?
fi
# End automatically added section

"invoke-rc.d pinto stop" added to debian/pinto.postinst file for
restart pintod.

Why?

I removed call invoke-rc.d pinto stop from script. Script work correctly without it.

Thank you.

--
Best regards, Oleg Gashev.


Reply to: