Re: restart a script in etc/rc.d

2009-03-02 Thread Oliver Lehmann
Doug Barton wrote: > Artis Caune wrote: > > There is logic error in bacula rc.d script. It should first set > > default variables and only then use them. > > pidfile="${bacula_fd_pidfile}" > > : ${bacula_fd_pidfile="/var/run/bacula-fd.9102.pid"} > > > > If you don't set pidfile in rc.conf

Re: gmirror does not initialize properally

2009-03-02 Thread Holger Kipp
On Mon, Mar 02, 2009 at 07:18:07PM -0500, Aryeh M. Friedman wrote: > Andrew Snow wrote: > > > >Sorry, I meant "label -h" instead of just plain "label"... was getting > >confused with gstripe. > > > No matter what I attempt to do with the source drive (ad8) I get > oprtation not permitted... it le

Re: gmirror does not initialize properally

2009-03-02 Thread Aryeh M. Friedman
Andrew Snow wrote: Sorry, I meant "label -h" instead of just plain "label"... was getting confused with gstripe. No matter what I attempt to do with the source drive (ad8) I get oprtation not permitted... it lets me install the slave drive (ad14) just fine: flosoft# gmirror label -h -vb

Re: IPC Sys5 for amd64?

2009-03-02 Thread Max Laier
On Monday 02 March 2009 23:07:30 nico...@boiteameuh.org wrote: > Hi all, > > I'm trying to install a PostgreSQL db on FreeBSD 7.1-RELEASE amd64. > It's seems I can't allocate a shared memory segment more than 2GB. > I tune sysctl ipc.shm* values but without effects. > > IPC Sys5 isn't "64bit-aware"

IPC Sys5 for amd64?

2009-03-02 Thread nicolas
Hi all, I'm trying to install a PostgreSQL db on FreeBSD 7.1-RELEASE amd64. It's seems I can't allocate a shared memory segment more than 2GB. I tune sysctl ipc.shm* values but without effects. IPC Sys5 isn't "64bit-aware" or the problem is elsewhere? Regards, -- Nicolas Haller ___

Re: restart a script in etc/rc.d

2009-03-02 Thread Artis Caune
2009/3/2 Oliver Lehmann : > r...@nudel rc.d> grep bacula_fd /etc/rc.conf > bacula_fd_enable="YES" > bacula_fd2_enable="YES" > bacula_fd2_flags=" -u root -g wheel -v -c /usr/local/etc/bacula-fd2.conf" > bacula_fd2_pidfile="/var/run/bacula-fd.9104.pid" can you try with: bacula_fd_pidfile="/var/r

Re: restart a script in etc/rc.d

2009-03-02 Thread Doug Barton
Artis Caune wrote: > 2009/3/2 Artis Caune : >> 2009/3/2 Oliver Lehmann : >>> r...@nudel rc.d> grep bacula_fd /etc/rc.conf >>> bacula_fd_enable="YES" >>> bacula_fd2_enable="YES" >>> bacula_fd2_flags=" -u root -g wheel -v -c /usr/local/etc/bacula-fd2.conf" >>> bacula_fd2_pidfile="/var/run/bacula-fd.9

Re: restart a script in etc/rc.d

2009-03-02 Thread Artis Caune
2009/3/2 Artis Caune : > 2009/3/2 Oliver Lehmann : >> r...@nudel rc.d> grep bacula_fd /etc/rc.conf >> bacula_fd_enable="YES" >> bacula_fd2_enable="YES" >> bacula_fd2_flags=" -u root -g wheel -v -c /usr/local/etc/bacula-fd2.conf" >> bacula_fd2_pidfile="/var/run/bacula-fd.9104.pid" > > can you try wi

Re: restart a script in etc/rc.d

2009-03-02 Thread Glen Barber
On Mon, Mar 2, 2009 at 2:25 PM, Oliver Lehmann wrote: > Hi Doug, > > Doug Barton wrote: > >> Also, the assignment of pidfile should really come after the defaults are >> set. >> >> If you do all that and it still doesn't work, send a diff of your two rc.d >> scripts to the list. > > PROVIDE is in

Re: restart a script in etc/rc.d

2009-03-02 Thread Glen Barber
On Mon, Mar 2, 2009 at 4:10 PM, Glen Barber wrote: > On Mon, Mar 2, 2009 at 2:25 PM, Oliver Lehmann wrote: >> Hi Doug, >> >> Doug Barton wrote: >> >>> Also, the assignment of pidfile should really come after the defaults are >>> set. >>> >>> If you do all that and it still doesn't work, send a di

Re: restart a script in etc/rc.d

2009-03-02 Thread Doug Barton
Oliver Lehmann wrote: > Doug Barton writes: >> You missed the bit where I said that this should come after the >> assignment of the defaults below. > > Ok, but... >> Have you confirmed that the two pid files exist, and that they contain >> the right information? > > Yes they both exists (probably

Re: restart a script in etc/rc.d

2009-03-02 Thread Oliver Lehmann
Doug Barton writes: You missed the bit where I said that this should come after the assignment of the defaults below. Ok, but... Have you confirmed that the two pid files exist, and that they contain the right information? Yes they both exists (probably because I define the variable in rc

Re: devd question

2009-03-02 Thread Roland Smith
On Mon, Mar 02, 2009 at 08:48:53PM +0200, Kostik Belousov wrote: > > This system is missing from the devd.conf manual page, nor is DEVFS > > mentioned in /usr/share/examples/etc/devd.conf. Is it documented > > somewhere else? > > No, it is not documented anywhere. > Feel free to send me the docum

Re: restart a script in etc/rc.d

2009-03-02 Thread Doug Barton
Oliver Lehmann wrote: > Hi Doug, > > Doug Barton wrote: > >> Also, the assignment of pidfile should really come after the defaults are >> set. >> >> If you do all that and it still doesn't work, send a diff of your two rc.d >> scripts to the list. > > PROVIDE is in both cases "utility" (probab

Re: restart a script in etc/rc.d

2009-03-02 Thread Doug Barton
On Mon, 2 Mar 2009, Oliver Lehmann wrote: Hi, I've below etc/rc.d bacula-fd and I copied it to bacula-fd2 because I need to run 2 file daemons. I'Ve modified every variable for the 2nd start script to be independent from the first one. It works so far but when I issue etc/rc.d/bacula-fd restart

Re: restart a script in etc/rc.d

2009-03-02 Thread Oliver Lehmann
Hi Doug, Doug Barton wrote: > Also, the assignment of pidfile should really come after the defaults are > set. > > If you do all that and it still doesn't work, send a diff of your two rc.d > scripts to the list. PROVIDE is in both cases "utility" (probably a generic unchanged default) - I'v

Re: devd question

2009-03-02 Thread Kostik Belousov
On Mon, Mar 02, 2009 at 07:28:39PM +0100, Roland Smith wrote: > On Mon, Mar 02, 2009 at 03:23:46PM +0200, Andriy Gapon wrote: > > on 28/02/2009 16:34 Kostik Belousov said the following: > > > On Sat, Feb 28, 2009 at 02:13:10PM +0100, Michael Sperber wrote: > > >> I'm trying to make devd run an stty

Re: devd question

2009-03-02 Thread Roland Smith
On Mon, Mar 02, 2009 at 03:23:46PM +0200, Andriy Gapon wrote: > on 28/02/2009 16:34 Kostik Belousov said the following: > > On Sat, Feb 28, 2009 at 02:13:10PM +0100, Michael Sperber wrote: > >> I'm trying to make devd run an stty command whenever a USB serial device > >> is attached. Unfortunately

Re: 7.1 new install halts on BTX error

2009-03-02 Thread John Baldwin
On Wednesday 28 January 2009 10:13:46 pm David Adam wrote: > I upgraded my 7.0 system to 7.1-RELEASE with freebsd-update only to find > that it no longer boots correctly, instead crashing with a BTX backtrace. > If I break to the loader prompt and use 'ls /boot', I also get a > backtrace. > > A

restart a script in etc/rc.d

2009-03-02 Thread Oliver Lehmann
Hi, I've below etc/rc.d bacula-fd and I copied it to bacula-fd2 because I need to run 2 file daemons. I'Ve modified every variable for the 2nd start script to be independent from the first one. It works so far but when I issue etc/rc.d/bacula-fd restart it also stops the process started by bacula-

Re: devd question

2009-03-02 Thread Michael Sperber
Andriy Gapon writes: > on 28/02/2009 16:34 Kostik Belousov said the following: >> On Sat, Feb 28, 2009 at 02:13:10PM +0100, Michael Sperber wrote: >>> I'm trying to make devd run an stty command whenever a USB serial device >>> is attached. Unfortunately, $device-name is ucom[0-9] and the devic

Re: 7.1 hangs in cache_lookup mutex?

2009-03-02 Thread Guy Helmer
Guy Helmer wrote: John Baldwin wrote: On Thursday 26 February 2009 5:27:07 pm Guy Helmer wrote: John Baldwin wrote: On Thursday 26 February 2009 4:22:15 pm Guy Helmer wrote: db> show sleepchain 23110 thread 100181 (pid 23110, vmstat) blocked on sx "user map" XLOCK thread 100208

Re: devd question

2009-03-02 Thread Andriy Gapon
on 02/03/2009 15:51 Michael Sperber said the following: > Andriy Gapon writes: > >> on 28/02/2009 16:34 Kostik Belousov said the following: >>> On Sat, Feb 28, 2009 at 02:13:10PM +0100, Michael Sperber wrote: I'm trying to make devd run an stty command whenever a USB serial device is at

Re: devd question

2009-03-02 Thread Andriy Gapon
on 28/02/2009 16:34 Kostik Belousov said the following: > On Sat, Feb 28, 2009 at 02:13:10PM +0100, Michael Sperber wrote: >> I'm trying to make devd run an stty command whenever a USB serial device >> is attached. Unfortunately, $device-name is ucom[0-9] and the device >> names are /dev/cuaU[0-9]

Re: Using ZFS swap hangs my machine :(.

2009-03-02 Thread Ivan Voras
Josef Karthauser wrote: > Is anyone successfully using ZFS swap under 7.1? It is well known swapping on ZFS doesn't work. See http://wiki.freebsd.org/ZFSKnownProblems for more information. signature.asc Description: OpenPGP digital signature

Using ZFS swap hangs my machine :(.

2009-03-02 Thread Josef Karthauser
Is anyone successfully using ZFS swap under 7.1? I've created a VZOL for my swap partition, and can read and write to it ok using 'dd', but whenever the kernel uses it the machine hangs solid. :/. Is this a known problem, or do I have some local weirdness going on? Joe brahe# uname

Re: powerd causing crash on Mini-ITX EN1200

2009-03-02 Thread Markus Hitter
Am 26.02.2009 um 18:44 schrieb Ross Penner: When I enable powerd, it is only but a matter of time before my machine will lock up completely. I've had this problem since I've migrated to FreeBSD 7 from 6. FreeBSD 6 never seemed to have any problems. As FreeBSD Stable is a continuous developmen