How about adding a --no-detach option (to be used in combination with
--daemon) to rsync so it can be run under Dan Bernstein's daemontools'
supervise? If there's interest I'll provide a patch.
--
Jos Backus _/ _/_/_/ Santa Clara, CA
_/ _/ _/
_/ _/_/_/
_/ _/ _/ _/
josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;
I did the same, for cygwin, but I called the
option --debug-daemon. --no-detach is probably a better name. Heres my
patch.
----- Original Message -----
From: "Jos Backus" <josb@cncdsl.com>
To: <rsync@lists.samba.org>
Sent: Tuesday, November 20, 2001 11:05 PM
Subject: --no-detach option?
How about adding a --no-detach option (to be used in combination with
--daemon) to rsync so it can be run under Dan Bernstein's daemontools'
supervise? If there's interest I'll provide a patch.
--
Jos Backus _/ _/_/_/ Santa Clara, CA
_/ _/ _/
_/ _/_/_/
_/ _/ _/ _/
josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rsync-debug-daemon.patch
Type: application/octet-stream
Size: 2169 bytes
Desc: not available
Url :
http://lists.samba.org/archive/rsync/attachments/20011121/85355bbd/rsync-debug-daemon.obj
Not in daemon mode.
++++++++++++++++++++++++++++++++++++++++++++++++# ps -ef |grep rsync
# rsync --daemon
# ps -ef |grep rsync
root 23716 1 0 07:42:58 ? 0:00 rsync --daemon
# rsync localhost::
tconway
#
++++++++++++++++++++++++++++++++++++++++++++++++
Like most daemons, it forks by default. I've wanted this feature for some
time, for debugging, but instead, just started it with truss, with the
fork option.
Tim Conway
tim.conway@philips.com
303.682.4917
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(nnnnnnnnnnnn,
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970),
".\n" '
"There are some who call me.... Tim?"
Dave Dykstra <dwd@bell-labs.com>
Sent by: rsync-admin@lists.samba.org
11/21/2001 07:15 AM
To: rsync@lists.samba.org
cc: (bcc: Tim Conway/LMT/SC/PHILIPS)
Subject: Re: --no-detach option?
Classification:
On Wed, Nov 21, 2001 at 12:23:29PM -0000, Max Bowsher
wrote:> I did the same, for cygwin, but I called the
> option --debug-daemon. --no-detach is probably a better name. Heres my
> patch.
> ----- Original Message -----
> From: "Jos Backus" <josb@cncdsl.com>
> To: <rsync@lists.samba.org>
> Sent: Tuesday, November 20, 2001 11:05 PM
> Subject: --no-detach option?
>
>
> How about adding a --no-detach option (to be used in combination with
> --daemon) to rsync so it can be run under Dan Bernstein's
daemontools'
> supervise? If there's interest I'll provide a patch.
Rsync will already not detach if stdin is not a socket. Is that
sufficient?
- Dave Dykstra
On Tue, Nov 20, 2001 at 03:05:32PM -0800, Jos Backus wrote:> How about adding a --no-detach option (to be used in combination with > --daemon) to rsync so it can be run under Dan Bernstein's daemontools' > supervise? If there's interest I'll provide a patch.I'd be interested in this; sure. The real question is whether Dave/Martin/the other rsync maintainers would be interested in it, too :). I think it should be included, since the patch is non-invasive and doesn't break compatiblity. It would probably be beneficial even for people who don't use daemontools. -- #ozone/algorithm <ozone@algorithm.com.au> - trust.in.love.to.save