https://bugzilla.novell.com/show_bug.cgi?id=776870 https://bugzilla.novell.com/show_bug.cgi?id=776870#c0 Summary: Wrong logic in /etc/init.d/monit for monit autostart script Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: All OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: archon810@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1 It looks like after the update from 11.3 to 12.1, /var/run is now tmpfs and gets reset every boot. If you install monit, its /etc/init.d/monit script tries to make the dir that the PID_FILE resides in (/var/run/monit), otherwise monit doesn't start as that dir doesn't exist. The problem is, /etc/init.d/monit (which is installed when you install monit via YaST) uses the wrong logic to get the PID_DIR to create: PID_DIR=$(/bin/basename "$MONIT_PID_FILE") /bin/mkdir -p -m0700 "$PID_DIR" This logic sets PID_DIR to monit.pid, not /var/run/monit. The correct command is /usr/bin/dirname. Reproducible: Always Steps to Reproduce: 1. Install monit from YaST or source 2. Attempt to start it /etc/init.d/monit start 3. Observe a fail due to missing /var/run/monit (in /var/log/messages) Actual Results: monit failed to start Expected Results: monit should start -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.