Re: LSB-ize daemon without pidfile handling

2007-11-17 Thread Marc Haber
On Fri, 16 Nov 2007 14:53:47 +0100, Marc Haber <[EMAIL PROTECTED]> wrote: >On Wed, 14 Nov 2007 17:57:56 + (UTC), Robert Edmonds ><[EMAIL PROTECTED]> wrote: >>Anyway, here's a (compile-tested only) patch: > >Which I have submitted upstream (Debian #451472). Thanks! And which Upstream has alreay

Re: LSB-ize daemon without pidfile handling

2007-11-16 Thread Marc Haber
On Wed, 14 Nov 2007 17:57:56 + (UTC), Robert Edmonds <[EMAIL PROTECTED]> wrote: >Anyway, here's a (compile-tested only) patch: Which I have submitted upstream (Debian #451472). Thanks! Greetings Marc -- -- !! No courtesy copies, please !! - Marc Haber

Re: LSB-ize daemon without pidfile handling

2007-11-14 Thread Wouter Verhelst
On Wed, Nov 14, 2007 at 03:16:28PM +0100, Marc Haber wrote: > On Sun, 11 Nov 2007 11:47:49 +, Stephen Gran <[EMAIL PROTECTED]> > wrote: > >This one time, at band camp, Marc Haber said: > >> How many seconds until the "please make pidfile location configurable" > >> wishlist bug? > > > >Which is

Re: LSB-ize daemon without pidfile handling

2007-11-14 Thread Wouter Verhelst
On Sun, Nov 11, 2007 at 12:40:16PM +0100, Marc Haber wrote: > On Sat, 10 Nov 2007 17:00:13 +0100, Wouter Verhelst > <[EMAIL PROTECTED]> wrote: > >That is one way to look at it. The other way would be that these are > >just three lines of "code" being duplicated here, and that start_daemon > >is jus

Re: LSB-ize daemon without pidfile handling

2007-11-14 Thread Josselin Mouette
Le dimanche 11 novembre 2007 à 17:48 -0600, Raphael Geissert a écrit : > Then why don't you do it The Right Way (tm)? > It isn't hard to read command line arguments with options, see man > getopt(3?). Oh yes it is, because getopt is an arcane and error-prone interface. -- .''`. : :' : We a

Re: LSB-ize daemon without pidfile handling

2007-11-14 Thread Robert Edmonds
On 2007-11-14, Marc Haber <[EMAIL PROTECTED]> wrote: > On Sun, 11 Nov 2007 11:47:49 +, Stephen Gran <[EMAIL PROTECTED]> > wrote: >>This one time, at band camp, Marc Haber said: >>> How many seconds until the "please make pidfile location configurable" >>> wishlist bug? >> >>Which is another, wh

Re: LSB-ize daemon without pidfile handling

2007-11-14 Thread Reinhard Tartler
Marc Haber <[EMAIL PROTECTED]> writes: > On Sun, 11 Nov 2007 17:48:45 -0600, Raphael Geissert > <[EMAIL PROTECTED]> wrote: >>Then why don't you do it The Right Way (tm)? > > No time, not enough C skill. To much other things to do. > > If it is a requirement to be able to do bug-free C string opera

Re: LSB-ize daemon without pidfile handling

2007-11-14 Thread Marc Haber
On Sun, 11 Nov 2007 17:48:45 -0600, Raphael Geissert <[EMAIL PROTECTED]> wrote: >Then why don't you do it The Right Way (tm)? No time, not enough C skill. To much other things to do. If it is a requirement to be able to do bug-free C string operations to be a DD, please remove me from the keyring

Re: LSB-ize daemon without pidfile handling

2007-11-14 Thread Marc Haber
On Sun, 11 Nov 2007 11:47:49 +, Stephen Gran <[EMAIL PROTECTED]> wrote: >This one time, at band camp, Marc Haber said: >> How many seconds until the "please make pidfile location configurable" >> wishlist bug? > >Which is another, what, 5-10 lines of code? I do not feel able to write C code fo

Re: LSB-ize daemon without pidfile handling

2007-11-11 Thread Raphael Geissert
Marc Haber wrote: > On Fri, 09 Nov 2007 22:00:42 +0100, Petter Reinholdtsen > <[EMAIL PROTECTED]> wrote: >>[Marc Haber] >>> I do not plan to do so for obvious reasons. >> >>It is not obvious for me. Can you explain why it should be obvious >>that you do not plan to patch the daemon to write its ow

Re: LSB-ize daemon without pidfile handling

2007-11-11 Thread Raphael Geissert
Marc Haber wrote: > On Sat, 10 Nov 2007 17:00:13 +0100, Wouter Verhelst > <[EMAIL PROTECTED]> wrote: >>That is one way to look at it. The other way would be that these are >>just three lines of "code" being duplicated here, and that start_daemon >>is just a convenience function, nothing more. > >

Re: LSB-ize daemon without pidfile handling

2007-11-11 Thread Stephen Gran
This one time, at band camp, Marc Haber said: > On Sat, 10 Nov 2007 17:01:38 +0100, Wouter Verhelst > <[EMAIL PROTECTED]> wrote: > >On Fri, Nov 09, 2007 at 10:24:46PM +0100, Adeodato Simó wrote: > >> Well, it's obvious it's the best approach if you're willing to do it. ;-) > > > >It's three lines o

Re: LSB-ize daemon without pidfile handling

2007-11-11 Thread Marc Haber
On Sat, 10 Nov 2007 17:00:13 +0100, Wouter Verhelst <[EMAIL PROTECTED]> wrote: >That is one way to look at it. The other way would be that these are >just three lines of "code" being duplicated here, and that start_daemon >is just a convenience function, nothing more. So, start_daemon is not part

Re: LSB-ize daemon without pidfile handling

2007-11-11 Thread Marc Haber
On Sat, 10 Nov 2007 17:01:38 +0100, Wouter Verhelst <[EMAIL PROTECTED]> wrote: >On Fri, Nov 09, 2007 at 10:24:46PM +0100, Adeodato Simó wrote: >> Well, it's obvious it's the best approach if you're willing to do it. ;-) > >It's three lines of code to write a PID file, and it's the best approach >to

Re: LSB-ize daemon without pidfile handling

2007-11-10 Thread Manoj Srivastava
On Sat, 10 Nov 2007 16:19:37 +0100, Marc Haber <[EMAIL PROTECTED]> said: > On Fri, 09 Nov 2007 22:00:42 +0100, Petter Reinholdtsen >> [EMAIL PROTECTED]> wrote: >> [Marc Haber] >>> I do not plan to do so for obvious reasons. >> >> It is not obvious for me. Can you explain why it should be obviou

Re: LSB-ize daemon without pidfile handling

2007-11-10 Thread Wouter Verhelst
On Fri, Nov 09, 2007 at 10:24:46PM +0100, Adeodato Simó wrote: > * Petter Reinholdtsen [Fri, 09 Nov 2007 22:00:42 +0100]: > > It is not obvious for me. Can you explain why it should be obvious > > that you do not plan to patch the daemon to write its own pid file? > > For me, the obvious solution

Re: LSB-ize daemon without pidfile handling

2007-11-10 Thread Wouter Verhelst
On Fri, Nov 09, 2007 at 04:15:24PM +0100, Marc Haber wrote: > On Fri, 9 Nov 2007 08:49:22 +0100, Wouter Verhelst <[EMAIL PROTECTED]> > wrote: > >log_daemon_msg "Starting Foo Daemon" "foo" > >start-stop-daemon --whatever --you --want --here > >log_end_msg 0 > > I do not think that this is particula

Re: LSB-ize daemon without pidfile handling

2007-11-10 Thread Marc Haber
On Fri, 09 Nov 2007 22:00:42 +0100, Petter Reinholdtsen <[EMAIL PROTECTED]> wrote: >[Marc Haber] >> I do not plan to do so for obvious reasons. > >It is not obvious for me. Can you explain why it should be obvious >that you do not plan to patch the daemon to write its own pid file? >For me, the ob

Re: LSB-ize daemon without pidfile handling

2007-11-09 Thread Adeodato Simó
* Petter Reinholdtsen [Fri, 09 Nov 2007 22:00:42 +0100]: > It is not obvious for me. Can you explain why it should be obvious > that you do not plan to patch the daemon to write its own pid file? > For me, the obvious solution for a daemon unable to write its own pid > file is to patch the daemon

Re: LSB-ize daemon without pidfile handling

2007-11-09 Thread Petter Reinholdtsen
[Marc Haber] > I do not plan to do so for obvious reasons. It is not obvious for me. Can you explain why it should be obvious that you do not plan to patch the daemon to write its own pid file? For me, the obvious solution for a daemon unable to write its own pid file is to patch the daemon. Ha

Re: LSB-ize daemon without pidfile handling

2007-11-09 Thread Marc Haber
On Fri, 9 Nov 2007 14:00:03 +1100, Hamish Moffatt <[EMAIL PROTECTED]> wrote: >On Thu, Nov 08, 2007 at 09:36:24PM +0100, Marc Haber wrote: >> How am I supposed to properly lsb-ize ser2net's init script? Is it ok >> to directly call s-s-d from the init script or do I need other >> workarounds? > >Per

Re: LSB-ize daemon without pidfile handling

2007-11-09 Thread Marc Haber
On Fri, 9 Nov 2007 08:49:22 +0100, Wouter Verhelst <[EMAIL PROTECTED]> wrote: >On Thu, Nov 08, 2007 at 09:36:24PM +0100, Marc Haber wrote: >> How am I supposed to properly lsb-ize ser2net's init script? Is it ok >> to directly call s-s-d from the init script or do I need other >> workarounds? > >Re

Re: LSB-ize daemon without pidfile handling

2007-11-08 Thread Wouter Verhelst
On Thu, Nov 08, 2007 at 09:36:24PM +0100, Marc Haber wrote: > Hi, > > ser2net, a small daemon in a package maintained by me, cannot write > its own pidfile. Since it forks and detaches by default, > start-stop-daemon's --make-pidfile option is of no use as well, since > the daemon that ends up run

Re: LSB-ize daemon without pidfile handling

2007-11-08 Thread Hamish Moffatt
On Thu, Nov 08, 2007 at 09:36:24PM +0100, Marc Haber wrote: > ser2net, a small daemon in a package maintained by me, cannot write > its own pidfile. Since it forks and detaches by default, > start-stop-daemon's --make-pidfile option is of no use as well, since > the daemon that ends up running has

LSB-ize daemon without pidfile handling

2007-11-08 Thread Marc Haber
Hi, ser2net, a small daemon in a package maintained by me, cannot write its own pidfile. Since it forks and detaches by default, start-stop-daemon's --make-pidfile option is of no use as well, since the daemon that ends up running has a different pid than s-s-d's child. Before, I started that dae