On 21 May 2010 10:11, Peter Chubb <peter.ch...@nicta.com.au> wrote:
>>>>>> "James" == James Sadler <freshto...@gmail.com> writes:
>
> James> The application is an HTTP server to be launched on server
> James> startup, so I used the init.d.ex and init.d.lsb.ex templates
> James> generated by dh_make, removed the .ex extension and made sure
> James> that the debian/rules file invoked dh_installinit.  (also,
> James> what's the reason for there being two init.d script flavours?)
>
> James> The package is created successfully, but when the installation
> James> starts the service the installation hangs.  I'm guessing that I
> James> have to control the daemonization of my service myself (I had
> James> assumed that the boilerplate generated by dh_make or
> James> start-stop-daemon would have taken care of it).
>
> Does the process that starts daemonify itself?  start-stop-daemon
> assumes it's starting a daemon (i.e., a process that, after doing
> whatever startup checks it needs to, forks and calls setsid() to
> detach itself from its parent).

No, it's not daemonizing itself.  I'm familiar with how to do that so
I'll make the changes.  I'd just assumed
that somehow it was taken care of by start-stop-daemon.

>
> If you add a --background argument to start-stop-daemon, it'll do the
> daemonification for you, but then you lose startup checks.

Can you clarify what you mean by 'losing startup checks'?

> --
> Dr Peter Chubb                                  peter DOT chubb AT 
> nicta.com.au
> http://www.ertos.nicta.com.au               ERTOS within National ICT 
> Australia
> All things shall perish from under the sky/Music alone shall live, never to 
> die
>

Thanks for your help, Peter.

-- 
James
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to