/etc/init.d/munin has two broken function definitions

Bug #2015280 reported by Travis Bean
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
munin (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Munin 2.0.57-1ubuntu2 fails to install on Ubuntu Server 22.04. This appears to the the exact same bug patched in Debian upstream (i.e., https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954234), but for some reason, this patch never made its way to the Ubuntu Server mirrors. Please review above mentioned Debian bug report, as I just confirmed this exact same issue.

Here is the failure:

Setting up munin (2.0.57-1ubuntu2) ...
Job for munin.service failed because the control process exited with error code.
See "systemctl status munin.service" and "journalctl -xeu munin.service" for details.
invoke-rc.d: initscript munin, action "restart" failed.
× munin.service - LSB: Create munin master directories on boot
     Loaded: loaded (/etc/init.d/munin; generated)
     Active: failed (Result: exit-code) since Tue 2023-04-04 16:21:42 UTC; 8ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 9626 ExecStart=/etc/init.d/munin start (code=exited, status=2)
        CPU: 10ms

Apr 04 16:21:42 or-rt1-ub systemd[1]: Starting LSB: Create munin master directories on boot...
Apr 04 16:21:42 or-rt1-ub munin[9626]: /etc/init.d/munin: line 30: syntax error near unexpected token `true'
Apr 04 16:21:42 or-rt1-ub munin[9626]: /etc/init.d/munin: line 30: `do_stop_cmd_override() true'
Apr 04 16:21:42 or-rt1-ub systemd[1]: munin.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Apr 04 16:21:42 or-rt1-ub systemd[1]: munin.service: Failed with result 'exit-code'.
Apr 04 16:21:42 or-rt1-ub systemd[1]: Failed to start LSB: Create munin master directories on boot.
dpkg: error processing package munin (--configure):
 installed munin package post-installation script subprocess returned error exit status 1

Tags: jammy
Paul White (paulw2u)
affects: ubuntu → munin (Ubuntu)
tags: added: jammy
Revision history for this message
Travis Bean (tlbean) wrote :

This is all that needs to be patched:

sed -i "s|true|{ true ; }|" /etc/init.d/munin

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in munin (Ubuntu):
status: New → Confirmed
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.