Re: sendmail/strace hanging

2004-04-17 Thread Cory Petkovsek
On Sat, Apr 10, 2004 at 08:29:38AM +0100, Matthew Seaman wrote:
 Hmmm... Very strange.  I wonder if it's sendmail causing the effect at
 all -- sounds like it might be something more systemic.  Do you have
 ACPI enabled?  Could it be that the system is throttling the CPU under
 load -- perhaps to keep the CPU cool?

Possibly, but I have not had any further problems once it started working
again.  I have it configured as I want it, so I won't worry about it until it
happens again.  I have noticed sendmail blocking as I send a message through
mutt.  I presume this is caused by dns lookups, but it is nearly always brief.

strace still blocks if I just say:
$ strace cat file

It blocks, but will jump start if I 'ctrl+z' and 'fg'.
ioctl(3, PIOCWAIT

Cory


-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: GPL: implications for FreeBSD-on-hardware for sale?

2004-04-10 Thread Cory Petkovsek
On Sat, Apr 10, 2004 at 05:15:15PM +0930, Paul A. Hoadley wrote:
 Hello,
 
 For a certain niche market, I am considering selling a software
 application by pre-installing it on a small machine running FreeBSD,
 and then selling the whole thing.  Are there any implications arising
 from the GPL (or other more-restrictive-than-BSD licensed) code in the
 tree?  
You are allowed to charge for GPL software.  Look at redhat, suse, etc.  What
the GPL requires is that any GPL software you distribute, you must provide the
source code and the same rights you have under the GPL (get source, modify,
redistribute).

 Would it be arguable that I was, in fact, selling only the
 hardware and my own software application, and giving away the (GPL-
 and BSD-licensed) open source software for free?  
You don't need to argue.  You can sell your own GPL software for $500, but you
need to provide the GPLed source and the redistrib/modify rights.

Your own proprietary binaries you can distribute along side the GPL and BSD
code, provided you don't have GPL code within your programs.  It can all be
bundled together as long as you have licensing, copyrights and required source
as part of the package (or possibly available, but not part of the package).

Cory

-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: remote install of freebsd via ssh

2004-04-09 Thread Cory Petkovsek
 From: Brian
 Sent: April 8, 2004 05:21

 Hello,
 Is there a way (or what is the best way) for installing freebsd
 remotely?  I have a nontechnical person at the site that can put
 in a cd or enter a few commands, but the thought of walking
 through a full install via the phone is not fun.  I would prefer
 to be able to use ssh for configuring.  Any suggestions would be
 a great help.

Burn a freesbie[1] and mail it to them.  Have them boot up in it.  Have them
start sshd if it isn't.  You can log in and take over.


[1] http://www.freesbie.org/

Cory

-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: WebMail

2004-04-09 Thread Cory Petkovsek
On Thu, Apr 08, 2004 at 10:59:57PM -0400, Shawn Guillemette wrote:
 I'm looking into options for webmail.. was looking for ideas... Looking for
 something with a good how to .. ;-)

First pick a package, then worry about a howto.  Openwebmail is nice, it reads
mail directly off of the mail spool.  However it only works with mbox format.
If this doesn't mean much to you it's not a big deal.  Squirrelmail is also
good but works through an imap server.  This means it is independent
of the underlying format, but it is slower.

Cory 

-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: changing directory permissions recursively

2004-04-09 Thread Cory Petkovsek
On Fri, Apr 09, 2004 at 08:47:07AM +0200, Uwe Doering wrote:
 cd $topdir
 find . -type d | xargs chmod 755
 
 In case (potentially) untrusted users have had write permission in this 
 directory tree in the past, a safer alternative would be
 
   find /path/to/tree/root -type d -print0 | xargs -0 chmod 755

Please explain the safer difference in your eyes, Uwe.  Are you thinking the
admin might have ./ in their path?

Cory

-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail/strace hanging

2004-04-09 Thread Cory Petkovsek
On Fri, Apr 09, 2004 at 10:16:42AM +0100, Matthew Seaman wrote:
 On Thu, Apr 08, 2004 at 04:08:39PM -0700, Cory Petkovsek wrote:
 
  Stopping sendmail with `sh /etc/rc.sendmail stop` works quickly.  Starting it
  takes about 3min.   Both sendmail-submit and sendmail-clientmqueue take a
  while before moving.  Booting also has this delay.
 
 In the interests of eliminating the obvious: you have confirmed that
 this is not some sort of DNS timeout?  Delays of that length on
 starting up sendmail are usually due to waiting out the DNS timeouts.

Would dns timeouts affect mailq?  My dns is setup correctly locally, which is
where I was trying to send my tests, to my local mailhub.  What is also
interesting is that it has started working again at a normal speed, without any
changes or restarts.  It was slow over config changes, make world, and
reboots.  But became slow, then became normal just by sitting idle.  I have a
p4 with HT and an SMP/HT kernel.  Could that have anything to do with it?

Cory



-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sendmail/strace hanging

2004-04-08 Thread Cory Petkovsek
I'm running the 5.2 branch, last updated about 3/23-28.  Last night I was
working on forwarding sendmail on my freebsd workstation to my solaris
mailhub.  I modified my rc.conf to change:
sendmail_enable=YES
to
sendmail_enable=NO
sendmail_submit_enable=YES

Then I worked on making a submit sendmail cf.  I ran `sh /etc/rc.sendmail` and
it restarted the daemons.  Things worked fine.  I could run mailq and sendmail
as normal (aside from mail level problems).

In the mean time I got side tracked with a solaris problem.  I left that root
window open and tackled solaris.  When I came back to that window, things were
not working quite right.  `mailq` delayed for about 1min 15 seconds before
displaying anything.  It took about as long to send a message `echo
test|sendmail cory`.  Prompt comes back, but the process sits there for some
time.

Stopping sendmail with `sh /etc/rc.sendmail stop` works quickly.  Starting it
takes about 3min.   Both sendmail-submit and sendmail-clientmqueue take a
while before moving.  Booting also has this delay.

I have since commented out both sendmail lines in the rc.conf.  I've also reset
the sendmail configuration in /etc/mail.  I did a cvsup with src-alll
tag=RELENG_5_2 and did a make build/installworld last night.  Still have the
delay.  Mergemaster replaced sendmail.cf, but saw no difference with
rc.sendmail.

Now for the fun part.  I installed strace to see what was going on.  Strace
exibited similar blocking!  ARRGGHH!  doing an `strace ls` on one window and an
`strace -p` in another shows it blocking at ioctl(3, PIOCWAIT
If I hit ctrl-z and then `fg` on the `strace ls` window it instantly runs.

If I `strace mailq`, again it blocks.  `strace -p` in another window
shows same thing.  Doing a ctrl-z/fg makes it go and I get a bunch of output
followed by this at the end: 
execve(/usr/libexec/sendmail/sendmail, [], [/* 0 vars */]PIOCWSTOP:
Input/output error

If I `mailq` and strace -p while it blocks I see it waiting at:
kevent(0x3, 0xbfbfbcc0, 0x1, 0xbfbfbcc0, 0x1, 0xbfbfbca0
with a wchan of kqread.

What happend?

Cory

-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]