asterisk packages some fixes
Thiago Martins
thiago at principaltelecom.com.br
Thu Jul 27 14:44:41 UTC 2006
Em Qui, 2006-07-27 às 02:11 +0300, Tzafrir Cohen escreveu:
> On Wed, Jul 26, 2006 at 05:53:51PM -0300, Thiago Martins wrote:
> > Em Qua, 2006-07-26 às 19:46 +0200, Kilian Krause escreveu:
....
> Two small remarks:
>
> from the debian/asterisk_fix:
>
> -invoke-rc.d asterisk restart || true
> +#invoke-rc.d asterisk restart || true
> +
> +# If asterisk in running, reload it
> +# otherwise start it
> +if [ -f "/etc/init.d/asterisk" ];then
> + if [ -f /var/run/asterisk/asterisk.pid ];then
> + invoke-rc.d asterisk reload || exit $?
> + else
> + invoke-rc.d asterisk start || exit $?
> + fi
> +fi
>
> 'command || exit $?' is the same as 'command'. Recall that the script
> runs with set -e.
Humm... you right...
> I have added there the '|| true ' after failiure of the postint script
> at install tim caused an installation error and some non-configured
> packages (that dependend on asterisk).
>
> Also: is there any reason you hardware the content of the postinst
> script and don't just put the debhelper stanza?
I do this because I can't reinstall the packages again and again from
asterisk*.deb packages. With the default debhelper script, it's allways
try to start asterisk, even if its already running.
> BTW: one issue with the current init.d script is that a 'restart' will
> kill even 'asterisk -R' processes.
...
Thiago
More information about the Pkg-voip-maintainers
mailing list