[Novalug] xinetd (solaris!) issues
jecottrell3 at comcast.net
jecottrell3 at comcast.net
Tue Apr 6 14:19:24 EDT 2010
YW. Other things you can do in wrapper scripts...set umask, change path, chroot, run a command via script -c and mail your-self/boss/customer the output, start/stop demons, add/delete user/groups, rotate log files, run backups, power off (but not on), the possibilities are endless (but not all of them are actually worth doing).
Sure beats looking thru tcpdump/wireshark/snoop dumps, altho the latter give you more info when you need it.
JIM
----- Original Message -----
From: "Nick Danger" <nick at hackermonkey.com>
To: jecottrell3 at comcast.net
Cc: novalug at calypso.tux.org
Sent: Monday, April 5, 2010 8:59:15 PM GMT -05:00 US/Canada Eastern
Subject: Re: [Novalug] xinetd (solaris!) issues
Great tip!!
Thanks to this I know that xinetd isn't doing what it should. I am
launching xinet at a prompt with -d debug on. And I am not seeing
anything (ie: amandad wrapped) launched. Well that might be an issue no? :-)
On 04/05/2010 05:09 PM, jecottrell3 at comcast.net wrote:
> Wrap It!
>
> A=amandad
> cd /usr/local/libexec
> mv $A $A.real
>
> cat<<EOF> $A
> #! /bin/sh
> date>> /tmp/$A.log
> exec $A.real \$@
> EOF
>
> chmod +x $A
>
> JIM
>
> ----- Original Message -----
> From: "Nick Danger"<nick at hackermonkey.com>
> To: novalug at calypso.tux.org
> Sent: Monday, April 5, 2010 4:05:51 PM GMT -05:00 US/Canada Eastern
> Subject: [Novalug] xinetd (solaris!) issues
>
>
> This is on a solaris box but the idea should be the same. How do I debug
> an xinetd issue? The problem I have is that I do not believe xinetd is
> launching amanda. Packets come in, but I see no return replies on a
> tcpdump. Or if it is launching amanda (/usr/local/libexec/amandad), it
> dies quickly.
>
> Anyone have easy xinetd debugging tips? I have nothing in
> /var/adm/messages, /tmp/amanda (amanda output) and I can't think of
> where else to look.
>
> Its been a long time since I messed with amanda, and solaris, so Im very
> rusty.
>
> Nick
>
> (note; I have checked with netcat, ports are open and packets can flow.
> Its an xinetd or a amanda issue, I just cant decide which..)
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug
>
More information about the Novalug
mailing list