Error on setting up a new box

I’m setting up a new box for someone and get the following:

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 Sat 2023-04-29 02:59:32 CDT; 5ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 117224 ExecStart=/etc/init.d/munin start (code=exited, status=2)
        CPU: 8ms

Apr 29 02:59:32 box.example.com systemd[1]: Starting LSB: Create munin master directories on boot...
Apr 29 02:59:32 box.example.com munin[117224]: /etc/init.d/munin: line 30: syntax error near unexpected token `true'
Apr 29 02:59:32 box.example.com munin[117224]: /etc/init.d/munin: line 30: `do_stop_cmd_override() true'
Apr 29 02:59:32 box.example.com systemd[1]: munin.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Apr 29 02:59:32 box.example.com systemd[1]: munin.service: Failed with result 'exit-code'.
dpkg: error processing package munin (--configure):
 installed munin package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
 munin
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried removing munin and rerunning the install, but that didn’t work.

I took a shot in the dark and edited the file it calls out: /etc/init.d/munin line 30

It worked!

sudo nano /etc/init.d/munin

# there is no process to be started or stopped ("munin-update" is executed via cron)
do_stop_cmd_override() { true; }
do_start_cmd_override() { true; }

I changed 31 as well.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.