1834804 Members
2842 Online
110070 Solutions
New Discussion

daemon restart time

 
SOLVED
Go to solution
Khashru
Valued Contributor

daemon restart time

How can i find out weither a daemon is restared or not. I restarted cron daemon few hours back. Where i can find the log?
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: daemon restart time

# ps -ef |grep cron

will show you whether or not cron is running and what time it started. The cron log is '/var/adm/cron/log'

Khashru
Valued Contributor

Re: daemon restart time

I found the log. in ps -ef i can only find time but no date.

root 22616 1 0 11:07:23 ? 0:00 /usr/sbin/cron
Baiju Kumar.B_1
Advisor

Re: daemon restart time

dear khashru,
please go through the following steps
#cd /sbin/init.d
./crond start
then check #ps -ef |grep cron
if the out put is ok then cron demon is atarted

regards
Baiju
nothing is impossible
Khashru
Valued Contributor

Re: daemon restart time

I know it is running. i want to find out the date from ps -ef |grep cron
Andrew Merritt_2
Honored Contributor

Re: daemon restart time

Hi Khashru,
If ps output shows just the time, that means the process was started within the last 24 hours. If it was longer ago, then you just get the date. 'man ps' will tell you this.

Andrew