[Bug 776870] New: Wrong logic in /etc/init.d/monit for monit autostart script
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.
https://bugzilla.novell.com/show_bug.cgi?id=776870 https://bugzilla.novell.com/show_bug.cgi?id=776870#c1 Artem Russakovskii <archon810@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |archon810@gmail.com --- Comment #1 from Artem Russakovskii <archon810@gmail.com> 2012-08-22 05:27:50 UTC --- P.S. The current /bin/basename logic creates /monit.pid dir in server root (/). Yuck. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=776870 https://bugzilla.novell.com/show_bug.cgi?id=776870#c Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de AssignedTo|bnc-team-screening@forge.pr |pascal.bleser@opensuse.org |ovo.novell.com | -- 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.
participants (1)
-
bugzilla_noreply@novell.com