ITP: inetsim
Hi Lukas
?thanks for your help,
> Instead, please read the manpage of dh_installinit(1). The options
> --no-start and --no-enable look like they might do the right thing, so
> you will end up with something like this in debian/rules:
>
> override_dh_installinit:
> dh_installinit --your --options --here
>
> The option description of --no-start seems to imply that you need to
> take care of stopping the service yourself on removal, please check
> that and modify the maintainer scripts accordingly.
I added the --no-enable, the DEBHELPER added in the postinst
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" =
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
??? if [ -x "/etc/init.d/inetsim" ]; then
??? ??? update-rc.d inetsim defaults-disabled >/dev/null
??? ??? if [ -n "$2" ]; then
??? ??? ??? _dh_action=restart
??? ??? else
??? ??? ??? _dh_action=start
??? ??? fi
??? ??? invoke-rc.d inetsim $_dh_action || exit 1
??? fi
fi
and the prerm
# Automatically added by dh_installinit/11.1.3
if [ -x "/etc/init.d/inetsim" ] && [ "$1" = remove ]; then
??? invoke-rc.d inetsim stop || exit 1
fi
# End automatically added section
I tried to purge while it is running as a service, and It works fine.
Regards,
GengYu Rao
Reply to:
- Follow-Ups:
- ITP: inetsim
- From: lukas@schwaighofer.name (Lukas Schwaighofer)
- References:
- ITP: inetsim
- From: lukas@schwaighofer.name (Lukas Schwaighofer)