1748038 Members
4949 Online
108757 Solutions
New Discussion

Re: Crond in HPUX

 
SOLVED
Go to solution
AnkushKalra
Advisor

Crond in HPUX

Hi,

I am new to HPUX.I have some doubts related to "crond" in HPUX.

I have one HPUX box.Details of HP Server is as below.

#uname -a
HP-UX SrvName B.11.31 U ia64 2915055790 unlimited-user license


In this already cronjobs arealready  running fine.If we add one more cronjob,do i have to start any service??I know in rhel7,you donot have to restart any service.Kernel reloads crond service automatically.is the same in HPUX or is different?

Also how can i check "cron" status in hpux like we can do the same in rhel using "systemctl status crond".

Please help

5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: Crond in HPUX

If you edit your crontab file with 'crontab -e' then NO, you do not have to restart the cron daemon.

 

To verify that cron is running the easiest way is 'ps -ef | grep cron'.

 

 

AnkushKalra
Advisor

Re: Crond in HPUX

Thanks for the responce.Also please let me know how can i check "cron" status in hpux like we can do the same in rhel using "systemctl status crond".I know i can see "crond" service using "ps -ef | grep crond",but can i get crond status output similar to rhel  

Patrick Wallek
Honored Contributor

Re: Crond in HPUX

No, you cannot.  There is no 'systemctl' type command for HP-UX.

AnkushKalra
Advisor

Re: Crond in HPUX

Thanks all for the help!!!

Dennis Handly
Acclaimed Contributor

Re: crond in HP-UX

> I know i can see "crond" service using "ps -ef | grep crond",

 

That's all there is, it's either running or not.

A better command for checking for process existence, no need for grep, is:

UNIX95=EXTENDED_PS ps -HfC crontd