[Bug 743289] New: server:monitoring/monit: Bugs in init.d script
https://bugzilla.novell.com/show_bug.cgi?id=743289 https://bugzilla.novell.com/show_bug.cgi?id=743289#c0 Summary: server:monitoring/monit: Bugs in init.d script Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: openSUSE 11.3 Status: NEW Severity: Critical Priority: P5 - None Component: 3rd party software AssignedTo: pascal.bleser@opensuse.org ReportedBy: luke@box.com QAContact: opensuse-communityscreening@forge.provo.novell.com CC: nix@opensuse.org Found By: --- Blocker: --- Hey, I'm using the Monit 5.3.2 package on OpenSuSE 11.3 and there are some quite obvious problems with the packaged init.d script. 1. The init.d script uses the wrong default PID file. Under my testing, Monit defaults to "/var/run/monit.pid", while the init.d script uses "/var/run/monit/monit.pid". This causes the "monit" command to fail to find the existing monit process and results in two monit daemons fighting each other. (see bug 497574) 2. An empty "monit.pid" directory is written in the current directory when running the init.d script. This is a pretty obvious error: PID_DIR=$(/bin/basename "$MONIT_PID_FILE") /bin/mkdir -p -m0700 "$PID_DIR" The author meant to use "dirname", not "basename". Thanks! -- 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=743289 https://bugzilla.novell.com/show_bug.cgi?id=743289#c Pascal Bleser <pascal.bleser@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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=743289 https://bugzilla.novell.com/show_bug.cgi?id=743289#c1 Pascal Bleser <pascal.bleser@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |luke@box.com --- Comment #1 from Pascal Bleser <pascal.bleser@opensuse.org> 2012-01-25 23:36:58 UTC --- Should be fixed in revision 33 of server:monitoring/monit (monit packages version 5.3.2 and release >= ). Thanks for reporting. Would you mind testing with your setup again and report whether it is fixed now or not ? -- 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=743289 https://bugzilla.novell.com/show_bug.cgi?id=743289#c2 --- Comment #2 from Pascal Bleser <pascal.bleser@opensuse.org> 2012-01-26 00:14:22 UTC --- Sorry, that's release >= 25.1 -- 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=743289 https://bugzilla.novell.com/show_bug.cgi?id=743289#c3 Luke Curley <luke@box.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|luke@box.com | --- Comment #3 from Luke Curley <luke@box.com> 2012-01-27 00:19:52 UTC --- Hey, thanks for the fast response, but it's not quite fixed. I don't know if it's a problem with monit or the init.d script at this point. 1. line 82: /bin/dirname: No such file or directory On my machine, it's /usr/bin/dirname 2. [lcurley@convert-lcurley.dev ~]$ sudo /etc/init.d/monit start Starting monit daemon with http interface at [*:2812] done [lcurley@convert-lcurley.dev ~]$ sudo monit status monit: Status not available -- the monit daemon is not running 3. [lcurley@convert-lcurley.dev ~]$ ps -A |grep monit 24177 ? 00:00:00 monit 24371 ? 00:00:00 monit [lcurley@convert-lcurley.dev ~]$ sudo cat /var/run/monit/monit.pid 24177 4. [lcurley@convert-lcurley.dev ~]$ sudo monit Starting monit daemon with http interface at [*:2812] [lcurley@convert-lcurley.dev ~]$ sudo monit Starting monit daemon with http interface at [*:2812] Let me know if you can't reproduce and I'll keep looking for the problem. -- 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