LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-01-2009, 03:25 PM   #1
DrStrangepork
LQ Newbie
 
Registered: Aug 2009
Posts: 22

Rep: Reputation: 15
Question Monit won't start


I am running monit on a CentOS 5.3 box. Today I added a process to monitor and restarted monit via the init.d script. It did not restart. In short, when I start it, I get this:

Starting Process Monitor (monit): [ OK ]

Looks good, but it I run a "status" immediately afterward, I get "monit dead but subsys locked". Furthermore, I get no errors in the messages log, my config comes out clean if I run a "monit -c /etc/monit.conf -t", and all the monit options from the CLI work fine. I tried undoing my changes, but that didn't help. It just won't start up as a daemon.

I'm baffled. I've never had this problem before. It has been working fine on all my CentOS and ubuntu boxes up until now.
 
Old 10-01-2009, 07:28 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I don't have my Centos system in front of me, but /var/lock/subsys (?) is where the pid lock files are stored.
Also, have a look in /var/log/messages & put 'set -xv' at the top of the init shell script & disable any stdout/stderr redirects.
That way, you should get everything sent to the screen.
 
Old 10-13-2009, 11:22 AM   #3
DrStrangepork
LQ Newbie
 
Registered: Aug 2009
Posts: 22

Original Poster
Rep: Reputation: 15
My /etc/monit.conf file had the daemon setting commented out by default. This was working before, so I don't know what changed, but once I removed the comment, it started via the init.d script normally.

set daemon 120
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help me setup monit please :) steve51184 Linux - Server 2 08-03-2009 03:43 AM
Monit parameters linuxfia Linux - Software 8 06-04-2009 10:55 AM
Monit and Mysql bichonfrise74 Linux - Newbie 2 05-04-2009 11:47 AM
little help getting monit working please steve51184 Linux - Software 1 02-24-2009 04:56 PM
Problem with Setting up monit helptonewbie Linux - Software 2 07-29-2007 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration