Sponsored Content
Operating Systems AIX how to monitor deamon processes Post 302435961 by kah00na on Thursday 8th of July 2010 04:46:57 PM
Old 07-08-2010
If you are starting your daemons from the /etc/inittab, you can set them up like the cron daemon to automatically respawn it if it is killed or dies. You can see here I kill my cron daemon and the system automatically restarts it because of the "respawn" in the /etc/inittab.
Code:
host:/:$ grep ^cron /etc/inittab
cron:23456789:respawn:/usr/sbin/cron

host:/:$ ps -ef | grep cron
    root  4915380        1   0   Jun 15      -  1:02 /usr/sbin/cron

host:/:$ kill 4915380

host:/:$ ps -ef | grep cron
    root  8192228        1   7 15:42:04      -  0:00 /usr/sbin/cron
host:/:$

There is no logging doing it this way, but it will keep your processes running even if they are killed.

---------- Post updated at 03:46 PM ---------- Previous update was at 03:45 PM ----------

As to who is killing them... it has to be either root or the owner of the processes. I don't think you can kill some one else's running processes.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

deamon process

hi how to write deamon program i specified in detail i want to write c++ program when it run it run like deamon process (1 Reply)
Discussion started by: munnu
1 Replies

2. Red Hat

Permissionfor some deamon

Hi everyone. Now, i want to permit for an user to start, stop and reconfig some of daemon on Redhat system without root permission. So how can i do ? Tks all. (2 Replies)
Discussion started by: quan0509
2 Replies

3. Shell Programming and Scripting

perl script to monitor 2 processes

I have two processes that I need to keep running. The first process is a server, the second is basically a canvas for creating images which get saved to a directory. So I plan on using launchd (Mac OS 10.5) on a server to check every minute or so to make sure two things are true: 1) Both apps... (3 Replies)
Discussion started by: Solerous
3 Replies

4. Linux

Hal deamon..

I have install centos on my server,.. then after rebooting 2 ,3 times , hal deamon cannot start, and system hang on boot.. when i google, i found the solution which is off the hal daemon service... my question is, what is the effect if i off the deamon service ?:confused: tq (2 Replies)
Discussion started by: ultramen7
2 Replies

5. Infrastructure Monitoring

Using SNMP to monitor remote processes and disk space

snmpget -v 1 -c COMMUNITYSTR hostname OID what OIDs would I use to get information on all the processes and disk space information that are on a particular host. where can i find out information on all of this? thanks (3 Replies)
Discussion started by: SkySmart
3 Replies

6. Ubuntu

How to monitor firefox processes?

Hi Team, I have over 100 users,working on LINUX machine & all they use firefox. I want to monitor traffic from every IP and mainly CPU USAGE TAKEN BY FIREFOX PROCESSES ON EACH MACHINE. Is there any tool which runs on lunux and will help me to monitor firefox processes of our entire LAN? ... (2 Replies)
Discussion started by: paragnehete
2 Replies

7. Shell Programming and Scripting

script to monitor different processes on different Unix servers

GM, Can you pls help how to write a script to monitor different processes on different unix servers and send the output to a /tmp/report file, earlier my boss asked me to write a script to monitor just one process running on different servers and send the output to a file so I wrote this exec... (0 Replies)
Discussion started by: baders
0 Replies

8. Linux

Linux Total Processes - Why monitor it?

Hi Guys, Monitoring 'Total Processes' on Linux servers has been always something you 'should' do. My question is - why? Is it relevant anymore? If you monitor memory and cpu params, you have a pretty good idea about what's going on. Is the number of processes really matter? Thanks (1 Reply)
Discussion started by: DjDeaf
1 Replies

9. Debian

Gkrellm Linux HD Monitor needs a hddtemp deamon ?

Hi , i have enclosed a picture of gkrellm configuration. MX16 Debian Jessie Linux. For showing the temperature the software needs a hddtemp daemon running on port 7634 ! How to make that daemon ? A cool task. I dont know anything about that. Perhaps the commandline tool hddtemp is... (2 Replies)
Discussion started by: Zabo
2 Replies

10. Infrastructure Monitoring

Searching for Saas Monitor service which monitor my servers which are sitting in different providers

Sorry if this is the wrong forum Searching for Saas Monitor service which monitor my servers which are sitting in different providers . This monitor tool will take as less CPU as possible , and will send info about the server to main Dashboard. The info I need is CPU / RAM / my servers status (... (1 Reply)
Discussion started by: umen
1 Replies
KILLALL5(8)						Linux System Administrator's Manual					       KILLALL5(8)

NAME
killall5 -- send a signal to all processes. SYNOPSIS
killall5 -signalnumber [-o omitpid[,omitpid..]] [-o omitpid[,omitpid..]..] DESCRIPTION
killall5 is the SystemV killall command. It sends a signal to all processes except kernel threads and the processes in its own session, so it won't kill the shell that is running the script it was called from. Its primary (only) use is in the rc scripts found in the /etc/init.d directory. OPTIONS
-o omitpid Tells killall5 to omit processes with that process id. NOTES
killall5 can also be invoked as pidof, which is simply a (symbolic) link to the killall5 program. EXIT STATUS
The program return zero if it killed processes. It return 2 if no process were killed, and 1 if it was unable to find any processes (/proc/ is missing). SEE ALSO
halt(8), reboot(8), pidof(8), killproc(8) AUTHOR
Miquel van Smoorenburg, miquels@cistron.nl 04 Nov 2003 KILLALL5(8)
All times are GMT -4. The time now is 08:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy