Discussion Locked

Killing the daemon

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We Take daily backups in our linux system using the tape drive and we have to restart the linux system in order to kill the backup daemon daily for starting the next days backup. This is results in the system downtime which happens to be our mailserver.

Please tell me a solution so as to kill the daemon automatically soon after the backup is over.
Regards
HARI

1 reply

by it

You need to be a little more specific to be able to get good help ;)

because you say that "we have to restart the linux system in order to kill the backup daemon daily for starting the next days backup", I will assume that somehow a program is called to do a backup when you start linux. That means that the program is probably in /etc/rc.d/init.d/

please, check there or give us a little more information then we can help you!

in general, you can kill any process (including daemons), with the commands

kill
killall

this commands have several swithches, the most used ones are -1 (hup or "restart" or reread the conf. file), -9 (brute force kill) and -15 (terminate process, but do it closing all open files and child process...)

if you know the name of the process, you can use
killall -15 program.name
but it wont allways works

you can try to find the porces pid with ps , and then you use

kill -15 pidnumber

good luck
Marcos

This discussion is closed to new replies.