LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-28-2008, 01:48 AM   #1
nima0102
Member
 
Registered: Nov 2006
Posts: 209

Rep: Reputation: 30
how to determine server has been restarted


Hi
I wanna to know when one service (eg. apache) has been restarted.
thanks for any help or guidance
 
Old 10-28-2008, 02:37 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
0) When a service is started on system boot by the BSD or SysV initscripts the parent PID of the main process is "1", if it isn't the process was started later or by Something Else. 1) The system and daemon log could show initialisation lines. 2) The MAC-times of lockfiles or any opened files has changed. 3) The process PIDs are way different from processes that where not restarted (if no PID randomisation like GRSecurity provides is used). 4) A process watcher like Monit could restart the application or watch restarts and log it.
 
Old 11-03-2008, 05:04 AM   #3
nima0102
Member
 
Registered: Nov 2006
Posts: 209

Original Poster
Rep: Reputation: 30
thanks for your reply
I have found watchdog daemon, that check availability of service and notify via mail and then restart the daemon.
have you worked with watchdogd ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how do i determine the mail server im using? eleara Linux - Server 4 04-30-2008 05:37 AM
The X server restarted and then the fonts became ugly BK2 Mandriva 3 12-22-2007 01:11 AM
how to determine when my server is maxed out? sneakyimp Linux - General 3 10-23-2006 05:52 PM
No lines within '/var/log/acpid', and then server restarted guarriman Linux - Hardware 1 07-20-2006 04:14 PM
Route getting deleted when the Linux server is restarted halaatnaren Linux - Newbie 2 07-29-2004 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:29 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