Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th September 2007, 07:56 AM
DeCSS Offline
Registered User
 
Join Date: Jul 2007
Location: La Mirada, CA
Age: 33
Posts: 90
Question Now it's a weird Snort problem...

Whenever I reboot the server Snort says OK, but when I go to services it shows that is is dead... subsys loked... and so on.

Now, I know what the problem is. It is the fact that Snort is starting first and MySql is starting 3 or 4 processes after. I know this because when I read /var/log/messages it states that Snort cannot log into MySql (because it didn't start in time).

My question is, how can I get MySql to start before Snort? Will it affect anything by changing the startup order?

Thanks in advance
Reply With Quote
  #2  
Old 29th September 2007, 08:26 AM
bytesniper's Avatar
bytesniper Offline
Registered User
 
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158
there might b e a better solution that this now... this is kind of old school but it should work...

first, a little background: look in /etc/rc.d/. you will see an rc#.d that corresponds to all 7 runlevels (0-6). in another directory called init.d contains that actual start/stop scripts for each daemon. inside each of the rc#.d dirs are symlinks that refer back to init.d. these symlinks control what is started with each runlevel and in which order. so basically when you use chkconfig it is managing these symlinks for you.

anyway, when you go into, lets say, rc5.d, you will see everything that is going to start in runlevel 5. each symlink will have a number and letter code next to it that determines its position within the directory which is what controls the order in which they start. so theoretically if you were to mrename the snort symlink to a letter/number code to appear before mysql you would stop getting that error.

a few warnings:
1) i have no idea what will happen the next time you run chkconfig. it will probably put it back to normal.
2) you could possibly render your system non-bootable. highly unlikely, but possible.
3) the two you would want to modify are for runlevel 3 and 5. reason: it starts rl3 first so when rl5 init's i think it will already see that mysql and snort are running so it does not try to start them again so if rc3.d is not modified the startup order for daemons in both 3 and 5 will not be either. (i could be wrong on that one though)
4) the mysql daemon (in my experience) takes longer than most another daemons i've seen to start so it could be that mysql is actually being initiated first but not fully loading until sometime after snort attempts to start.
5) changing the start order can break things if you move something that now is told to start before something that it is dependent on.

if #4 turns out to be true, where mysql is actually loading first just not getting done in time one possible workaround is to use chkconfig to tell mysql to run in 3 and 5 but tell snort to only start in 5. that way by the time linux issues init 5 mysql is already running - before snort is initiated.

hopefully someone has a better answer for you
joseph
__________________
I am root. If you see me laughing you better have a backup.
Reply With Quote
  #3  
Old 4th October 2007, 07:35 PM
DeCSS Offline
Registered User
 
Join Date: Jul 2007
Location: La Mirada, CA
Age: 33
Posts: 90
Sorry about the late reply. That worked bytesniper! Thanks again!
Reply With Quote
Reply

Tags
problem, snort, weird

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
snort/snort inline/snort+flexresponse Wiles Security and Privacy 4 27th February 2010 12:08 PM
Problem with snort brunoadm Using Fedora 1 26th December 2009 03:24 PM
Snort Problem Karthic Using Fedora 2 27th December 2007 03:28 AM
Problem removing Snort F7 biggsk Using Fedora 2 27th December 2007 03:09 AM
snort problem? bigmacbb63 Security and Privacy 1 24th June 2007 11:55 AM


Current GMT-time: 00:01 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat