Q: Daemons, how to kill & restart remotely

From: James Lehman (james[remove)
Date: 09/19/04


Date: Sun, 19 Sep 2004 13:03:35 -0400

Hello everyone.

Let's say I have a daemon process that provides a TCP/IP service.
I can use this service to do many things on the remote machine,
including uploading a new set of freshly built executables
that make a whole working solution.

How do I upload a new build of the daemon process itself?
Currently, I use the daemon, we'll call it xxxd, to upload a
file called xxxd_. then I shell into the system, killall xxxd
and cp xxxd_ over xxxd and restart the daemon.
Is there a neat way to cause xxxd to kill itself, perform
the copy and start again?

Thanks!

Have a great day! James. :o)



Relevant Pages

  • Re: Daemons, how to kill & restart remotely
    ... xxxd_ over xxxd and starts xxxd. ... > Let's say I have a daemon process that provides a TCP/IP service. ... > How do I upload a new build of the daemon process itself? ...
    (comp.os.linux.development.system)
  • Re: Q: Daemons, how to kill & restart remotely
    ... >> How do I upload a new build of the daemon process itself? ... > # you can safely rename a file even if it is mapped by some process ...
    (comp.os.linux.development.system)
  • Re: Q: Daemons, how to kill & restart remotely
    ... > file called xxxd_. ... > and cp xxxd_ over xxxd and restart the daemon. ... # you then upload the new version or rename it ...
    (comp.os.linux.development.system)