Re: fstab problem

2012-01-13 Thread Frank Brendel

Use  /dev/ad0s1a instead of /ad0s1a.

Frank

Am 13.01.2012 11:01, schrieb Bernt Hansson:

Hello list!

I've moved /etc/fstab to /etc/fstab.org

When booting I get prompted with

mountroot

Ok. I type ufs:ad0s1a

The crap boot up. But I can't get the filesystem to become R/W

Tried /sbin/mount -o rw /ad0s1a /
/sbin/mount -o rw,force /ad0s1a /
/sbin/mount -o force /ad0s1a /

But /sbin/mount only shows ro.

Don't really know what to do, except reinstall and that's a noop.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org


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


Re: Monitor directory and execute script

2011-11-07 Thread Frank Brendel

||
I think sysutils/wait_on is what you are looking for.



Am 07.11.2011 16:21, schrieb Andrea Venturoli:

On 11/07/11 15:26, Warren Block wrote:

On Mon, 7 Nov 2011, Andrea Venturoli wrote:


I need to check for new or updated files in a directory and execute a
script on them whenever that happens.
Before I launch on complicated scripting, is there some
utility/port/deamon that already does this?


There's devel/gamin.


Thanks for the answer.
AFAICT gamin is a library; from there I'd need to develop some daemon, 
provide rc scripts, etc...


My question was whether such a thing already exists.

 bye
av.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org


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


relayd.conf interval and timeout values

2011-04-20 Thread Frank Brendel
Hi list,

I have a question regarding the interval and timeout values.

Here is my relayd.conf

host1=10.0.0.1
host2=10.0.0.2
host_ext=10.0.1.1
interval 5
timeout 3000
table host_table { $host1 $host2 }
relay smtp_relay {
 listen on $host_ext port smtp
 forward to host_table port smtp interval 15 timeout 14000 
check script /tmp/chk_test.sh
}

and the little script to test the intervals and timeouts:

#!/usr/local/bin/bash
while true; do
   echo PID: $$ - HOST: $1 - DATE: $(date) /tmp/chk_test.txt
   sleep 1
done

As I understand relayd should start the script /tmp/chk_test.sh every 15 
seconds and kills it after 14 seconds since the table configuration 
overwrites the global configuration.
But relayd starts the script every 5 seconds and kills it after 3 seconds.

Have I misunderstood something?

I've installed relayd-4.6.20090813_5 from the ports.
And the FreeBSD version is:
# uname -vp
FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 
r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


Many thanks
Frank
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org