Writing a daemon that can be used with service ?
- From: "dom" <dcurran@xxxxxx>
- Date: Tue, 5 Dec 2006 19:27:51 -0600
I'm confused...
This web site tell you how to write a daemon:
http://www.linuxprofilm.com/articles/linux-daemon-howto.html#s1
This looks like it produces a straight executable with an infinite while
loop. What it doesn't say is how to stop the daemon gracefully.
When I've used daemons in the past I started and stopped them using
'service' i.e.
# service smb start
# service httpd stop
How do I write the kind of daemon that is used with service ?
Thanks
dom
.
- Follow-Ups:
- Re: Writing a daemon that can be used with service ?
- From: jasen
- Re: Writing a daemon that can be used with service ?
- From: Lew Pitcher
- Re: Writing a daemon that can be used with service ?
- From: Josef Moellers
- Re: Writing a daemon that can be used with service ?
- Prev by Date: Re: gdb help: debugging a segfault in boost::shared_ptr
- Next by Date: Re: new in gtk development
- Previous by thread: gdb help: debugging a segfault in boost::shared_ptr
- Next by thread: Re: Writing a daemon that can be used with service ?
- Index(es):
Relevant Pages
|