StartUp Errors and IP change continued

2006-07-19 Thread DSA - JCR
Hi all again

I have changed the IP with ifconfig and tested it and rebooted my FreeBSD
6.1 amd64 box, but I have errors when I reboot. This are:

-sm-mta[490]:NOQUEUE: SYSERR(root): opendaemon socket
- daemon0: cannot bind: can't assign requested address
- problem creating SMT  (error lines overlap)
- server SMTP socket wedged:existin

this is what I could see because several lines overlap and was a bit
difficult to see the messages.

What's happening?


Thanks in advance and best regards

Juan Coruña
Desarrollo de Software Atlantico



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: StartUp Errors and IP change continued

2006-07-19 Thread jan gestre

On 7/20/06, DSA - JCR [EMAIL PROTECTED] wrote:


Hi all again

I have changed the IP with ifconfig and tested it and rebooted my FreeBSD
6.1 amd64 box, but I have errors when I reboot. This are:

-sm-mta[490]:NOQUEUE: SYSERR(root): opendaemon socket
- daemon0: cannot bind: can't assign requested address
- problem creating SMT  (error lines overlap)
- server SMTP socket wedged:existin

this is what I could see because several lines overlap and was a bit
difficult to see the messages.

What's happening?


there maybe a conflict of ip address, try to look at /etc/rc.conf and see

if your desired ip is what it says, if not edit it here via your editor then
reboot, it should work.

HTH
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Startup with no-ip

2004-08-28 Thread Lowell Gilbert
Please don't top-post.
http://catb.org/~esr/jargon/html/T/top-post.html

Olof Andersson [EMAIL PROTECTED] writes:

 Good suggestion. I have created the file /etc/dhclient-exit-hooks but
 do I need to do something else to get the noip to run when the
 ip-address changes? I'm a beginner so i could really need some help
 with the details.

It needs to be executable, but that's about the only other point.
Please see the manual:

man 8 dhclient-script
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Startup with no-ip

2004-08-27 Thread Olof Andersson
Good suggestion. I have created the file /etc/dhclient-exit-hooks but 
do I need to do something else to get the noip to run when the 
ip-address changes? I'm a beginner so i could really need some help 
with the details.

Thanks in advance
/Olof Andersson

but I suggest not running the updater as a daemon at all.
I have the dhcp client run it automatically when the address changes,
by creating /etc/dhclient-exit-hooks as follows:
  #!/bin/sh
  updater_prog = /usr/local/bin/noip2
  if [ x$reason = xREBOOT ]   || 	\
 [ x$old_ip_address = x ] || 	\
 [ x$old_ip_address != x$new_ip_address ]; then
  if [ -x $updater_prog ]; then
  ${updater_prog} -i $new_ip_address
  else
  logger dhclient-exit-hooks cannot find updater 
$updater_prog
  fi
  fi
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Startup with no-ip

2004-08-26 Thread Olof Andersson
Hi!
I have problems getting noip to start automatically at startup. I'm a 
beginner at FreeBSD and Unix and I need help with this. I added some 
info from my system that I hope will be usefull. noip works fine when 
manually started.

FreeBSD anderssons.no-ip.com 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: 
Mon Feb 23 20:45:55 GMT 2004 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

In /usr/local/etc/rc.d I have a file called noip.sh with the following 
content:

#!/bin/sh
case $1 in
start)
if [ -x /usr/local/bin/noip2 -a -f /usr/local/etc/no-ip2.conf 
]; then
echo -n ' noip';
su -m noip -c '/usr/local/bin/noip2' 2 /dev/null  
/dev/null
fi
;;
stop)
echo -n ' noip';
killall noip2
;;
*)
echo Usage: `basename $0` {start|stop} 2
exit 1
;;
esac
exit 0

My noip2 file is located in:
anderssons# ls -al /usr/local/bin/noip2
-rwx--  1 root  wheel  32716 Dec  5  2003 /usr/local/bin/noip2
And status is:
anderssons# /usr/local/bin/noip2 -S
No noip2 processes active.
Configuration data from /usr/local/etc/no-ip2.conf.
Account [EMAIL PROTECTED]
configured for:
host  anderssons.no-ip.com
Address check every 1 minute, directly connected via /dev/fxp0.
My no-ip2.conf is located in:
anderssons# ls -al /usr/local/etc/no-ip2.conf
-rw---  1 root  wheel  132 Aug 25 20:09 /usr/local/etc/no-ip2.conf
Best regards and thanks in advance
/Olof Andersson
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Startup with no-ip

2004-08-26 Thread Dan Rue
On Thu, Aug 26, 2004 at 10:20:39PM +0200, Olof Andersson wrote:
 Hi!
 
 I have problems getting noip to start automatically at startup. I'm a 
 beginner at FreeBSD and Unix and I need help with this. I added some 
 info from my system that I hope will be usefull. noip works fine when 
 manually started.
 
 FreeBSD anderssons.no-ip.com 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: 
 Mon Feb 23 20:45:55 GMT 2004 
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
 
 In /usr/local/etc/rc.d I have a file called noip.sh with the following 
 content:
 
 #!/bin/sh
 
 case $1 in
 start)
 if [ -x /usr/local/bin/noip2 -a -f /usr/local/etc/no-ip2.conf 
 ]; then
 echo -n ' noip';
 su -m noip -c '/usr/local/bin/noip2' 2 /dev/null  
  ^^
Here's your problem.  This script gets run as root, so the su is
redundant and failing.


 /dev/null
 fi
 ;;
 stop)
 echo -n ' noip';
 killall noip2
 ;;
 *)
 echo Usage: `basename $0` {start|stop} 2
 exit 1
 ;;
 esac
 exit 0
 

[snip]

dan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Startup with no-ip

2004-08-26 Thread Bill Moran
Dan Rue [EMAIL PROTECTED] wrote:
 On Thu, Aug 26, 2004 at 10:20:39PM +0200, Olof Andersson wrote:
  Hi!
  
  I have problems getting noip to start automatically at startup. I'm a 
  beginner at FreeBSD and Unix and I need help with this. I added some 
  info from my system that I hope will be usefull. noip works fine when 
  manually started.
  
  FreeBSD anderssons.no-ip.com 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: 
  Mon Feb 23 20:45:55 GMT 2004 
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
  
  In /usr/local/etc/rc.d I have a file called noip.sh with the following 
  content:
  
  #!/bin/sh
  
  case $1 in
  start)
  if [ -x /usr/local/bin/noip2 -a -f /usr/local/etc/no-ip2.conf 
  ]; then
  echo -n ' noip';
  su -m noip -c '/usr/local/bin/noip2' 2 /dev/null  
   ^^
 Here's your problem.  This script gets run as root, so the su is
 redundant and failing.

No.

He wants to su to the user noip to run the command, which is actually
a good idea.

I would guess what's causing problems is this: 2

I would guess that the 2 doesn't belong?

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Startup with no-ip

2004-08-26 Thread Lowell Gilbert
Olof Andersson [EMAIL PROTECTED] writes:

 Hi!
 
 I have problems getting noip to start automatically at startup. I'm a
 beginner at FreeBSD and Unix and I need help with this. I added some
 info from my system that I hope will be usefull. noip works fine when
 manually started.

[snip[

  su -m noip -c '/usr/local/bin/noip2' 2 /dev/null  /dev/null

I suspect that you wanted:
  su -m noip -c '/usr/local/bin/noip2' 21 /dev/null

but I suggest not running the updater as a daemon at all.

I have the dhcp client run it automatically when the address changes,
by creating /etc/dhclient-exit-hooks as follows:

  #!/bin/sh

  updater_prog = /usr/local/bin/noip2 
  if [ x$reason = xREBOOT ]   ||\
 [ x$old_ip_address = x ] ||\
 [ x$old_ip_address != x$new_ip_address ]; then
  if [ -x $updater_prog ]; then 
  ${updater_prog} -i $new_ip_address
  else
  logger dhclient-exit-hooks cannot find updater $updater_prog
  fi
  fi
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]