/etc/init.d/munin has two broken function definitions
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:/
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-
Process: 9626 ExecStart=
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_
Apr 04 16:21:42 or-rt1-ub systemd[1]: munin.service: Control process exited, code=exited, status=
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
affects: | ubuntu → munin (Ubuntu) |
tags: | added: jammy |
This is all that needs to be patched:
sed -i "s|true|{ true ; }|" /etc/init.d/munin