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?