On Mon, 2009-07-13 at 13:54 +0530, Siddhesh Poyarekar wrote:
> On Mon, Jul 13, 2009 at 1:34 PM, Krishnakant<[email protected]> 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.
> 
yes and there is one dummi script template which can be used as well
from the same folder.
Now I would want to know how this all can be automated in a deb package.

The catch here is that since our python app is getting installed using
the distutils magic, we don't have a make file which will or any such
file to perform compile and post conpile tasks.  I don't think setup.py
is the right place to put such things.

The rules file is a more appropriate place IMHO.
happy hacking.
Krishnakant.


-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to