Fedora Linux Support Community & Resources Center
  #1  
Old 7th January 2008, 11:57 PM
gold Offline
Registered User
 
Join Date: Aug 2007
Posts: 78
netstat command to find if service is running

how do find if syslogd is running(active) and what port, ip address, tcp/upd protocol, pid, program and such?

If you run fedora6 what udp port does syslogd run at?
Reply With Quote
  #2  
Old 8th January 2008, 12:59 AM
savage Offline
Registered User
 
Join Date: Jun 2005
Location: Mission Control
Posts: 1,229
To find out if it's running, something like:
Code:
ps aux | grep syslogd
should do the job, unless you've changed the default options, I think it uses UDP port 514, and unless you have 2 NICs, it should be listening on your main IP address, 'ifconfig' to check it.

Savage
Reply With Quote
  #3  
Old 8th January 2008, 01:30 AM
gold Offline
Registered User
 
Join Date: Aug 2007
Posts: 78
Quote:
[jeep@localhost temp]$ ps aux | grep syslogd
root 1989 0.0 0.0 1700 588 ? Ss 20:01 0:00 syslogd -m 0
how do I know which port it is running on? This doesn't say much.
Reply With Quote
  #4  
Old 8th January 2008, 01:49 AM
bradchaus Offline
Registered User
 
Join Date: May 2006
Posts: 548
netstat -p | grep syslog
__________________
* AMD Phenom 9750, 8GB DDR-1066, Gigabyte MA770UD3, ATI X550, F12 64bit
* Dual Athlon MP2800+, Gigabyte GA-7DPXDWP, 1GB, Centos 5.4

Linux Rules
Reply With Quote
  #5  
Old 8th January 2008, 02:01 AM
gold Offline
Registered User
 
Join Date: Aug 2007
Posts: 78
Quote:
[root@localhost root]# netstat -p|grep syslog
unix 19 [ ] DGRAM 5944 1989/syslogd /dev/log
So 5944 is the port? What the heck. I didn't change the ports. All default setup from fedora.

Last edited by gold; 8th January 2008 at 01:18 PM.
Reply With Quote
  #6  
Old 8th January 2008, 01:17 PM
gold Offline
Registered User
 
Join Date: Aug 2007
Posts: 78
Do I have to add this info into my syslog.conf file have it run on port 514 or it should do it automatically?
Quote:
syslog 514/udp # Syslogd Port
Reply With Quote
  #7  
Old 11th January 2008, 06:43 PM
gold Offline
Registered User
 
Join Date: Aug 2007
Posts: 78
It seems like I have to put the info in /etc/services:
Quote:
syslog 514/udp
What I have in my /etc/serices is:
Quote:
syslog-conn 601/tcp # Reliable Syslog Service
syslog-conn 601/udp # Reliable Syslog Service
How do you read the netstat columns. Below output mentions "1988/syslogd", does it mean syslogd running on port 1988?
Quote:
[root@localhost temp]# netstat -nap |grep syslogd
unix 19 [ ] DGRAM 6002 1988/syslogd /dev/log
Reply With Quote
Reply

Tags
command, netstat, running, service

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
netstat found sendmail running on port 25, should I remove it AnimeFreak Security and Privacy 22 11th January 2009 05:50 AM
Running mldonkey as a service, service does not startup Dhana Servers & Networking 2 14th August 2006 04:43 AM
Running Find command question satimis Linux Chat 2 23rd August 2005 07:45 PM


Current GMT-time: 15:59 (Friday, 25-07-2014)

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