Solved

This is in AIX 5.3..how to stop/start the cron daemon

Posted on 2011-02-11
2
15,433 Views
Last Modified: 2012-05-11
This is in AIX 5.3..how to stop/start the cron daemon
0
Comment
Question by:aixtutorial
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 63 total points
Comment Utility
Hi,

under AIX you don't need to restart the cron daemon.

If you made changes to a crontab using the "crontab -e" command the cron daemon will be restarted automatically.

If you think you must restart it manually (for whatever reason) just kill the cron process  (but not with kill -9!). It will come back automatically due to "respawn" in inittab.

Finally, should you feel the need to stop cron for a longer period of time, edit /etc/inittab and change "respawn" to "once" in the "cron:" line, then kill cron.
To get it back running change "once" back to "respawn" in inittab and issue "telinit 2".

wmp

0
 
LVL 6

Assisted Solution

by:Tomunique
Tomunique earned 62 total points
Comment Utility
To just get cron to re-read your /var/spool/cron/crontabs  entries
# ps -ef|grep -v grep |grep /usr/sbin/cron
    root  30714      1   0   Apr 21      - 15:00 /usr/sbin/cron

# kill -1 30714

If you want to literally stop it, and then manually restart it.. see wmp's post above.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now