I am developing a server daemon. I already have a functional version of this server running, but I've now compiled a new version of it. How do I replace the current process with the new one?
Can I just use service [daemon-name] restart
? Does this stop the current process and start a new one from the same (now updated) executable? Or does it simply restart the same (now obsolete) binary?
Can I just start the new version and expect it to replace the old one? Or would they run in parallel (not my intention)?
Also (though this may be a different question altogether), I was able to launch the current server as a daemon on my account even though I'm not an administrator. I have tried stopping it, but that requests the root
password. Is there a way of doing this without having to involve my network administrator?