On Mon, Jul 13, 2009 at 1:34 PM, Krishnakantkrmane@gmail.com wrote:
hello all, I am happy to announce that we are almost ready with the deb packages for gnukhata-client as well as server. Now we are facing a problem and I thought some one like JTD would already know a solution to my problem. I have been trying to make a demon for gnukhata's server and want it to run as the postgres user. I would ideally want this to be in the init.d for start, stop and restart. In addition most of the people would want this to start at system boot.
Googling for "install startup service linux" (without the quotes) and "linux daemon howto" without quotes gave me this:
To write a daemon (you have probably done this already if you have written a server):
http://www.netzmafia.de/skripten/unix/linux-daemon-howto.html
To install it as a service:
http://bitnami.org/article/how-to-install-services-on-linux
For example scripts you can open any existing ones to see how they work. They are all in /etc/init.d in most common distros.