systemd not enabled in postinst script

Bug #1958259 reported by Jörg Hänsel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
asterisk (Debian)
Fix Released
Unknown
asterisk (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

affected version is: 1:16.16.1~dfsg-4build1 (jammy)

1. dh_systemd_enable section is missing in /var/lib/dpkg/info/asterisk.postinst
2. [Install] Section with "WantedBy" is missing in /lib/systemd/system/asterisk.service

1+2 lead to missing /etc/system/mutli-user.target.wants/asterisk.service

After installation asterisk is only started once via the invocation of "invoce-rc.d asterisk restart". But after a reboot is is not started anymore due to the described reason above.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks for the report, Jörg.

I was able to confirm the problem and identify the underlying issue. This also affects the Debian package, and since asterisk is a sync from Debian we should first fix the problem there. I've now proposed a patch which should hopefully be accepted soon.

Thanks.

Changed in asterisk (Ubuntu):
status: New → In Progress
Changed in asterisk (Debian):
status: Unknown → Fix Released
Revision history for this message
Jörg Hänsel (spiderbaby) wrote : Re: [Bug 1958259] Re: systemd not enabled in postinst script

That are good news.
Thank you, Sergio!

Am Mi., 19. Jan. 2022 um 18:01 Uhr schrieb Sergio Durigan Junior <
<email address hidden>>:

> Thanks for the report, Jörg.
>
> I was able to confirm the problem and identify the underlying issue.
> This also affects the Debian package, and since asterisk is a sync from
> Debian we should first fix the problem there. I've now proposed a patch
> which should hopefully be accepted soon.
>
> Thanks.
>
> ** Bug watch added: Debian Bug tracker #985314
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985314
>
> ** Also affects: asterisk (Debian) via
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985314
> Importance: Unknown
> Status: Unknown
>
> ** Changed in: asterisk (Ubuntu)
> Status: New => In Progress
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1958259
>
> Title:
> systemd not enabled in postinst script
>
> Status in asterisk package in Ubuntu:
> In Progress
> Status in asterisk package in Debian:
> Unknown
>
> Bug description:
> affected version is: 1:16.16.1~dfsg-4build1 (jammy)
>
> 1. dh_systemd_enable section is missing in
> /var/lib/dpkg/info/asterisk.postinst
> 2. [Install] Section with "WantedBy" is missing in
> /lib/systemd/system/asterisk.service
>
> 1+2 lead to missing /etc/system/mutli-
> user.target.wants/asterisk.service
>
>
> After installation asterisk is only started once via the invocation of
> "invoce-rc.d asterisk restart". But after a reboot is is not started
> anymore due to the described reason above.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/asterisk/+bug/1958259/+subscriptions
>
>

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Although the package is still in -proposed, I'm marking this bug as Fix Released. This was fixed in version 1:16.16.1~dfsg+~2.10-2.

Thanks.

Changed in asterisk (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.