NFS : -alldirs requested but is not a filesystem mountpoint
Hello List, I have a FreeBSD 5.4 (yes a bit old), and I'm just using it as a NFS server. The server has got a filesystem located at /data This local filesystem has several subdirectories, and I'd like these subdirectories to be visible to a client host, but not all as a whole. This is the hierarchy at /data: /data/bulletins/nfs_bulls /data/bulletins/etc/ftpmotd -- this is only for FTP's ftpchroot config /data/taxes/docs /data/taxes/etc/ftpmotd -- this is only for FTP's ftpchroot config The data to be visible is under /data/bulletins/nfs_bulls (and all its subdirectories) and /data/taxes/docs (and all its subdirectories) As the content of both directories has nothing to do with each other, I'd like them to be independently exported. Thus, a client needing access to these data should issue 2 mount's for each data. I don't want both directories to be visible with just one mount. This is what I've coded in my /etc/exports /data/bulletins/nfs_bulls -alldirs -ro -network MyNet -mask 255.255.255.0 /data/taxes/docs -alldirs -ro -network MyNet -mask 255.255.255.0 And this is what syslog says: -alldirs requested but /data/bulletins/nfs_bulls is not a filesystem mountpoint bad exports list line /data/bulletins/nfs_bulls -alldirs -ro -network MyNet -mask 255.255.255.0 -alldirs requested but /data/taxes/docs is not a filesystem mountpoint bad exports list line /data/taxes/docs -alldirs -ro -network MyNet -mask 255.255.255.0 Reading through etc/exports(5) and having seen those error messages, I think I should create another separate filesystem on my server. However, I haven't got any space left for another slice. Is it possible to somehow accomplish what I want in this scenario? Many thanks in advance. LEGEZKO OHARRA / AVISO LEGAL / LEGAL ADVICE * Mezu honek isilpeko informazioa gorde dezake, edo jabea duena, edota legez babestuta dagoena. Zuri zuzendua ez bada, bidali duenari esan eta ezabatu, inori berbidali edo gorde gabe, legeak debekatzen duelako mezuak erabiltzea baimenik gabe. -- Este mensaje puede contener informacion confidencial, en propiedad o legalmente protegida. Si usted no es el destinatario, le rogamos lo comunique al remitente y proceda a borrarlo, sin reenviarlo ni conservarlo, ya que su uso no autorizado esta prohibido legalmente. -- This message may contain confidential, proprietary or legally privileged information. If you are not the intended recipient of this message, please notify it to the sender and delete without resending or backing it, as it is legally prohibited. ** ___ 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: NFS : -alldirs requested but is not a filesystem mountpoint - SOLVED
Solved: -alldirs was unnecessary Thanks. -Mensaje original- De: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] En nombre de Aitor San Juan Enviado el: lunes, 27 de julio de 2009 9:26 Para: freebsd-questions@freebsd.org Asunto: NFS : -alldirs requested but is not a filesystem mountpoint Hello List, I have a FreeBSD 5.4 (yes a bit old), and I'm just using it as a NFS server. The server has got a filesystem located at /data This local filesystem has several subdirectories, and I'd like these subdirectories to be visible to a client host, but not all as a whole. This is the hierarchy at /data: /data/bulletins/nfs_bulls /data/bulletins/etc/ftpmotd -- this is only for FTP's ftpchroot config /data/taxes/docs /data/taxes/etc/ftpmotd -- this is only for FTP's ftpchroot config The data to be visible is under /data/bulletins/nfs_bulls (and all its subdirectories) and /data/taxes/docs (and all its subdirectories) As the content of both directories has nothing to do with each other, I'd like them to be independently exported. Thus, a client needing access to these data should issue 2 mount's for each data. I don't want both directories to be visible with just one mount. This is what I've coded in my /etc/exports /data/bulletins/nfs_bulls -alldirs -ro -network MyNet -mask 255.255.255.0 /data/taxes/docs -alldirs -ro -network MyNet -mask 255.255.255.0 And this is what syslog says: -alldirs requested but /data/bulletins/nfs_bulls is not a filesystem mountpoint bad exports list line /data/bulletins/nfs_bulls -alldirs -ro -network MyNet -mask 255.255.255.0 -alldirs requested but /data/taxes/docs is not a filesystem mountpoint bad exports list line /data/taxes/docs -alldirs -ro -network MyNet -mask 255.255.255.0 Reading through etc/exports(5) and having seen those error messages, I think I should create another separate filesystem on my server. However, I haven't got any space left for another slice. Is it possible to somehow accomplish what I want in this scenario? Many thanks in advance. LEGEZKO OHARRA / AVISO LEGAL / LEGAL ADVICE * Mezu honek isilpeko informazioa gorde dezake, edo jabea duena, edota legez babestuta dagoena. Zuri zuzendua ez bada, bidali duenari esan eta ezabatu, inori berbidali edo gorde gabe, legeak debekatzen duelako mezuak erabiltzea baimenik gabe. -- Este mensaje puede contener informacion confidencial, en propiedad o legalmente protegida. Si usted no es el destinatario, le rogamos lo comunique al remitente y proceda a borrarlo, sin reenviarlo ni conservarlo, ya que su uso no autorizado esta prohibido legalmente. -- This message may contain confidential, proprietary or legally privileged information. If you are not the intended recipient of this message, please notify it to the sender and delete without resending or backing it, as it is legally prohibited. ** ___ 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: Syslog date format
On Sunday 26 July 2009 21:20:23 Modulok wrote: One would think that ISO 8601 date strings would make more sense, in addition not being language dependent. But I guess that's out. It isn't too hard to convert on the fly. The real problem is that syslog dates do not contain a year and timezone. The taillog program below sig therefore may lie about the generated date. Most notably a year is non-optional in ISO 8601. Anyway, taillog is basically tail(1), except it shows the following: % sudo taillog -2 /var/log/cron 2009-07-27 00:11:00-0800 smoochies /usr/sbin/cron[25808]: (operator) CMD (/usr/libexec/save-entropy) 2009-07-27 00:15:00-0800 smoochies /usr/sbin/cron[25834]: (root) CMD (/usr/libexec/atrun) -- Mel # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering sh file. Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # taillog/BSDmakefile # taillog/taillog.c # echo x - taillog/BSDmakefile sed 's/^X//' taillog/BSDmakefile 'f307a85b0a9ff60c11589de765a71b95' X# $Coar: utils/taillog/BSDmakefile,v 1.1 2009/07/27 07:58:48 mel Exp $ XPROG=taillog XNO_MAN=yes X X.include bsd.prog.mk f307a85b0a9ff60c11589de765a71b95 echo x - taillog/taillog.c sed 's/^X//' taillog/taillog.c '4c238c819ad69dd9d8586db323e29997' X/* X * vim: ts=4 sw=4 fdm=marker tw=78 ai noet X * Copyright (c) 2009 Mel Flynn X * All rights reserved. X * X * Redistribution and use in source and binary forms, with or without X * modification, are permitted provided that the following conditions X * are met: X * 1. Redistributions of source code must retain the above copyright X *notice, this list of conditions and the following disclaimer. X * 2. Redistributions in binary form must reproduce the above copyright X *notice, this list of conditions and the following disclaimer in the X *documentation and/or other materials provided with the distribution. X * X * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X * Taillog: tail(1) helper that converts syslog date format to ISO-8601. X */ X#include sys/cdefs.h X__FBSDID($Coar: utils/taillog/taillog.c,v 1.1 2009/07/27 07:58:48 mel Exp $); X X#include sys/types.h X#include sys/param.h X#include sys/resource.h X#include sys/time.h X#include sys/wait.h X X#include stdio.h X#include unistd.h X#include string.h X#include time.h X X#include sysexits.h X#include err.h X X#define TAIL /usr/bin/tail X Xstatic inline void init_tp(const struct tm *now, struct tm *tp); X Xint main(int argc, char **argv) X{ X pid_t pid; X int fildes[2], res; X struct tm *now; X time_t clock; X X tzset(); X clock = time(NULL); X now = localtime(clock); X X res = pipe(fildes); X if( (pid = fork()) == 0 ) /* Child */ X { X close(fildes[0]); X if( dup2(fildes[1], STDOUT_FILENO) 0 ) X err(EX_OSERR, dup2()); X argv[0] = strdup(TAIL); X if( (res = execv(TAIL, argv)) 0 ) X err(EX_OSERR, Failed to run tail); X } X else if( pid 0 ) /* Parent */ X { X char buf[BUFSIZ]; X FILE *in; X X close(fildes[1]); X if( (in = fdopen(fildes[0], r)) == NULL ) X err(EX_OSERR, fdopen()); X X while( fgets(buf, BUFSIZ, in) != NULL ) X { X struct tm tp; X size_t len = strlen(buf); X char *ptr, tbuf[32]; X X init_tp(now, tp); X ptr = strptime(buf, %b %e %T, tp); X if( ptr == NULL ) X { X warnx(Line does not start with syslog date); X printf(%s, buf); X } X else X { X if( strftime(tbuf, sizeof(tbuf), %Y-%m-%d %H:%M:%S%z, tp) == 0 ) X err(EX_SOFTWARE, Can't convert time); X res = printf(%s%s, tbuf, ptr); X
Re: 7.2 amd64 Flash
PJ af.gour...@videotron.ca writes: Now that my 7.2 on Acer Travelmate 4400 amd64 is working fine, what do I have to do to make it work on 7.1? I'd advise you to upgrade the OS at least to 7.2. There have been many changes to linuxulator since 7.1. -- WBR, bsam ___ 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
7.2 i386 and 7.2 amd64 on M/B Asus K8S-MX problems
Good day! I'm install freebsd 7.2 on computer with Asus K8S-MX motherboard, and there is such problems: Not recognized LAN. Here info about this M/B: http://www.asus.com/product.aspx?P_ID=0kP4nePr06XiYdYQ -- С уважением, Гуляев Гоша. ___ 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
source code licensing questions
Hi all, I am a part of a team that is planning to open a start-up company. We plan to ship a revolutionary storage controller. We are now investigating possible OS for the product. The choices that we came up with are either LINUX or Free-BSD. I am strongly biased toward Free-BSD, however I still need to understand the licensing impacts of using a Free-BSD kernel. Browsing the web about the BSD license just made me confused. Seems like to understand these licensing issues you must be a lawyer. I got the following questions regarding source license: 1.Do I need to open the source code for my product if I use the BSD kernel as part of the product? 2.If I do some kernel changes, do I need to open those changes as well? 3.What about Dtrace, if I use DTrace will I need to open code that use it? 4.Suppose the answer for 1-3 is no, s there any other reason why I need to open the code. Please understand that my questions stem from the fact that we are afraid of exposing our source code, especially during the first phases of the project. It is more than possible, that we will re-consider our approach in later stages and open some or all our code to the community. Thanks!! ___ 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: source code licensing questions
On Mon, Jul 27, 2009 at 11:58:14AM +0300, son goku wrote: [...] Browsing the web about the BSD license just made me confused. Seems like to understand these licensing issues you must be a lawyer. Basically the BSD licence is: do what you like, but: 1. don't say you did it all by yourself. 2. you can't blame us for anything. 3. Include the COPYRIGHT notice. I got the following questions regarding source license: 1.Do I need to open the source code for my product if I use the BSD kernel as part of the product? No. 2.If I do some kernel changes, do I need to open those changes as well? No. 3.What about Dtrace, if I use DTrace will I need to open code that use it? The CDDL licence seems to imply that you do. 4.Suppose the answer for 1-3 is no, s there any other reason why I need to open the code. Only if you feel like it. -- Jonathan Chen j...@chen.org.nz -- Jesus saves. Allah forgives. Cthulu thinks you'd make a nice sandwich. ___ 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: source code licensing questions
Jonathan Chen wrote: 4.Suppose the answer for 1-3 is no, s there any other reason why I need to open the code. Only if you feel like it. I'd make that, Only if you feel like it or would like the warm glow of giving back to the community (and of course all those extra eyes to audit and improve your code ;) ) That said their is no obligation at all. Vince ___ 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: source code licensing questions
Thanks guys for the prompt answers!!! It seems weird that code that uses dtrace must be opened. I mean every serious production level application must have some dtrace-like mechanism inside to collect online information when needed. It is a shame that because of licensing issues, I will have to roll-my-own and re-invent the wheel all over again, probably with cruder and implementation that is more flawed compared to dtrace. I wonder what all the proprietary modules for Solaris (VxVM jumps to mind...) or BSD do? Or there are no such modules anymore... On Mon, Jul 27, 2009 at 2:28 PM, Vincent Hoffman vi...@unsane.co.uk wrote: Jonathan Chen wrote: 4.Suppose the answer for 1-3 is no, s there any other reason why I need to open the code. Only if you feel like it. I'd make that, Only if you feel like it or would like the warm glow of giving back to the community (and of course all those extra eyes to audit and improve your code ;) ) That said their is no obligation at all. Vince ___ 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
How to find what symlink points to?
Hi all I need to remove some unwanted symlinks on /dev using a C program. The struct dirent only shows the symlink name, how do I find what that symlink points to for verification purpose? Regards Unga ___ 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: limit to number of files seen by ls?
understanding what is going on. I'm reading up on this, and as soon as I know enough to either understand the issue, or ask an intelligent question, I will do so... When a program is executed with arguments, there is a system imposed limit on the size of this argument list. On FreeBSD this limit can be seen with sysctl kern.argmax, which is the length in bytes. When you do ls *, what really happens is that the shell expands the asterisk to all entries in the current directory, except entries starting with a dot (hidden files and directories). As a result, ls is really called as: ls file1 file2 fileN If the string length of file1 to fileN is bigger then kern.argmax, then you will get argument list too long error. Mel, What I get is this: sysctl kern.argmax kern.argmax: 262144 Which is why I'm starting to think that (a) my problem is different or (b) I'm so clueless that there isn't any problem at all, and I'm just not understanding something (most likely scenario!) I'm going to write a little script that generates a bunch of files to test my hypothesis that once I get more than n files in a directory, some things stop working correctly, like ls and ftp directory listings, and to discover the value of n. That will give me some hard data to work with. This problem has been nagging at me for a while, so it's time I nail it down once and for all... I'll be back... -- John ___ 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: svn+ssh server only
On Jul 26, 2009, at 7:35 PM, Kalle Møller wrote: Hi I'm trying to make a ssh+svn server only (apache is installed, but that is for view.vc) For what its worth, I just built a new svn server (to replace my old apache-based svn server that should have been replaced years ago, but it kept on doing the job). This time, I used a very simple set up, using svnserve without any authentication. I use pf to limit access to the small number of IP addresses that I use. This setup is super-simple, fast, and secure enough for my needs. -- John___ 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: How to find what symlink points to?
On Mon, Jul 27, 2009 at 05:44:59AM -0700, Unga wrote: Hi all I need to remove some unwanted symlinks on /dev using a C program. The struct dirent only shows the symlink name, how do I find what that symlink points to for verification purpose? By using the readlink(2) system call. -- Insert your favourite quote here. Erik Trulsson ertr1...@student.uu.se ___ 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: How to find what symlink points to?
--- On Mon, 7/27/09, Erik Trulsson ertr1...@student.uu.se wrote: From: Erik Trulsson ertr1...@student.uu.se Subject: Re: How to find what symlink points to? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Monday, July 27, 2009, 9:36 PM On Mon, Jul 27, 2009 at 05:44:59AM -0700, Unga wrote: Hi all I need to remove some unwanted symlinks on /dev using a C program. The struct dirent only shows the symlink name, how do I find what that symlink points to for verification purpose? By using the readlink(2) system call. But readlink(2) fails with errno set to 2. Can readlink(2) use with dev nodes? Unga ___ 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: How to find what symlink points to?
On Mon, Jul 27, 2009 at 8:45 AM, Ungaunga...@yahoo.com wrote: --- On Mon, 7/27/09, Erik Trulsson ertr1...@student.uu.se wrote: From: Erik Trulsson ertr1...@student.uu.se Subject: Re: How to find what symlink points to? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Monday, July 27, 2009, 9:36 PM On Mon, Jul 27, 2009 at 05:44:59AM -0700, Unga wrote: Hi all I need to remove some unwanted symlinks on /dev using a C program. The struct dirent only shows the symlink name, how do I find what that symlink points to for verification purpose? By using the readlink(2) system call. But readlink(2) fails with errno set to 2. Can readlink(2) use with dev nodes? Unga Doesn't 'ls -alh' provide that information? Andrew ___ 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
Free bSD Turkish Translation
http://www.tr.freebsd.org/ Add yoru Turkish Language Updated Please (Upayi Network) Based on BSD UNIX® = BSD UNIX ® dayanarak FreeBSD ® Modern sunucu, masaüstü için gelişmiş bir işletim sistemi ve gömülü bilgisayar platformları olduğunu. FreeBSD kodu temel sürekli gelişim, iyileştirme otuz yıl geçirdi ve optimizasyon. Bu geliştirilmiş ve bireylerin büyük bir ekip tarafından korunur. FreeBSD ileri ağ sağlayan etkileyici güvenlik özellikleri ve dünya sınıfında performansı ve dünyanın en işlek web siteleri ve en gömülü ağ ve depolama aygıtları yaygın tarafından kullanılırlar. Learn More=Devamı Get FreeBSd Now =Şimdi Free BSD Edinin Latest Realse=En Son Bültenler SHORTCUTS=Kısayolllar LATEST NEWS=En Son Olaylar UPCOMING EVENTS=Gelecek Olaylar SECURITY ADVISORIES=Güvenlik Uyarısı Home=Ana Sayfa About=Hakkında Documantation=Dökümantasyon Support=Destek -- www.upayi.tr.cx test proxy low bandwich highspeed web proxy www.upayinetwork.com cominication Ar-Ge Research Programing ___ 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
Shared library structure
Hi, the current version of FreePascal doesn't include shared library (.so) support on FreeBSD. Because I like to use FPC on this operating system, I'll try to implement it. To do this, I need to know the structure of a FreeBSD shared library, its initialization/finalization functions, and so on. Where can I find up to date information about this? Thanks in advance, Leonardo M. Ramé http://leonardorame.blogspot.com ___ 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: source code licensing questions
On Mon, Jul 27, 2009 at 8:42 AM, son goku ryu.pla...@gmail.com wrote: Thanks guys for the prompt answers!!! It seems weird that code that uses dtrace must be opened. I mean every serious production level application must have some dtrace-like mechanism inside to collect online information when needed. It is a shame that because of licensing issues, I will have to roll-my-own and re-invent the wheel all over again, probably with cruder and implementation that is more flawed compared to dtrace. I wonder what all the proprietary modules for Solaris (VxVM jumps to mind...) or BSD do? Or there are no such modules anymore... http://www.sun.com/cddl/ - http://www.sun.com/cddl/cddl.html - *1.3. “Covered Software”* means (a) the Original Software, or (b) Modifications, or (c) the combination of files containing Original Software with files containing Modifications, in each case including portions thereof. - *1.6. “Larger Work”* means a work which combines Covered Software or portions thereof with code not governed by the terms of this License. - - *3.6. Larger Works.* You may create a Larger Work by combining Covered Software with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Software. -- http://www.opensource.org/licenses/cddl1.php http://opensolaris.org/os/licensing/cddllicense.txt http://opensolaris.org/os/licensing/opensolaris_license/ http://www.opensolaris.com/licensing/opensolaris_license/ http://www.netbeans.org/cddl.html http://www.openmediacommons.org/CDDL_License.html http://www.gnu.org/philosophy/license-list.html Common Development and Distribution License (CDDL), version 1.0http://www.opensolaris.org/os/licensing/cddllicense.txt This is a free software license. It has a copyleft with a scope that's similar to the one in the Mozilla Public License, which makes it incompatible with the GNU GPL http://www.gnu.org/licenses/gpl.html. This means a module covered by the GPL and a module covered by the CDDL cannot legally be linked together. We urge you not to use the CDDL for this reason. Also unfortunate in the CDDL is its use of the term “intellectual propertyhttp://www.gnu.org/philosophy/not-ipr.html ”. http://en.wikipedia.org/wiki/Common_Development_and_Distribution_License http://soundadvice.id.au/blog/2005/02/04/#cddl === http://www.opensolaris.org/os/about/faq/licensing_faq/ *If I use code licensed under the CDDL in my proprietary product, will I have to share my source code?* Yes, for any source files that are licensed under the CDDL and any modifications you make. However, you don't need to share the source for your proprietary source files. === http://lwn.net/Articles/114839/ I am NOT a lawyer , therefore my opinions does NOT have any legal value . In short , CDDL does NOT require to disclose your OWN proprietary sources , BUT ONLY requires to explicitly supply CDDL licensed parts with any changes applied to them with respect to CDDL license . If you are a commercial entity my suggestion would be to seek legal advise from a lawyer with expertise on software licenses and copyrights . Thank you very much . Mehmet Erol Sanliturk ___ 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: How to find what symlink points to?
On Monday 27 July 2009 05:45:13 Unga wrote: Hi all I need to remove some unwanted symlinks on /dev using a C program. The struct dirent only shows the symlink name, how do I find what that symlink points to for verification purpose? By using the readlink(2) system call. But readlink(2) fails with errno set to 2. Can readlink(2) use with dev nodes? Works for me. errno 2 is ENOENT (No such file or directory). I would inspect if your request path points to the right location. % ./rl /dev/stderr /dev/stderr = fd/2 % cat rl.c #include sys/types.h #include sys/param.h #include unistd.h #include stdio.h #include stdlib.h #include string.h #include err.h int main(int argc, char **argv) { char path[MAXPATHLEN], buf[MAXPATHLEN+1]; ssize_t res; if( argc != 2 ) exit(67); (void)strlcpy(path, argv[1], sizeof(path)); res = readlink(path, buf, sizeof(buf)); if( res 0 ) err(EXIT_FAILURE, readlink()); buf[MAXPATHLEN] = '\0'; printf(%s = %s\n, path, buf); return (0); } -- Mel ___ 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: Are all USB Flash Memory sticks bootable?
Fbsd1 wrote: Randi Harper wrote: On Thu, Jul 23, 2009 at 6:27 AM, Sergio de Almeida Lenzi lenzi.ser...@gmail.com wrote: Em Qui, 2009-07-23 às 12:52 +0800, Fbsd1 escreveu: Hello I found here that some bios does have problem with booting from partitions they do not know So first I initialize the USB stick with == dd count=100 if=/dev/zero of=/dev/da0 fdisk -BI da0 sade == than edit the partitions... ls /dev/da* should show da0s1 da0s2 than disklabel -wB da0s1 disklabel -wB da0s2 newfs -L Freebsd7 da0s1a newfs -L Freebsd8 da0s2a boot0cfg -vB da0 mount the partitions, copy the files boot from the usb... it will show you the F1 F2 chooser for me, this worked Sergio Just to clarify, are you trying to boot from a USB stick that you've installed FreeBSD onto, or is this a USB stick that you've dd'ed the memstick.img to? You should NOT use disklabel on a usb stick that you're dd'ing the memstick.img to. -- randi ___ 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 Here I will try to re-state the problem. I have two USB Flash Memory sticks. One is a 2GB stick and the other is a 8GB stick. I can install Freebsd 8.0 from disc1 cd onto the 2GB stick or dd the memstick.img to the 2GB stick and in both cases it will boot just fine. When I repeat the same procedure using the 8GB stick it will not boot. AS a test I have fdisk'ed the 8GB stick under MS/XP and loaded files to it ok. The only thing I see different between the 2 memsticks is in the messages 7.2 issues when the sticks get plugged in. Take note of the revision level differences between them. 2.00/1.00 versus rev 2.00/2.00 The only other guess I have is that the usb code in 7.2 has am error in it. Brand new 8GB Kingston DataTraveler 120 purchased 7/16/09 umass0: Kingston DataTraveler 120, class 0/0, rev 2.00/1.00, addr 2 on uhub1 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Kingston DataTraveler 120 1.00 Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 7643MB (15654848 512 byte sectors: 255H 63S/T 974C) GEOM_LABEL: Label for provider da0a is ufsid/4a615a2cc673eb3d. # 3 year old 2GB Kingston DataTraveler umass1: vendor 0x0930 USB Flash Memory, class 0/0, rev 2.00/2.00, addr 3 on uhub1 da1 at umass-sim1 bus 1 target 0 lun 0 da1: USB Flash Memory 6.50 Removable Direct Access SCSI-0 device da1: 1.000MB/s transfers ___ 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 Aloha, I put FreeBSD 7.2 iso (from Maniolis CD/DVD ) on stick (a Sandisk Cruzer 16 GB), and it works fine. This was using the normal install directed to the stick. Booting was not an issue. Maybe your stick is messed up. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + email: n...@hdk5.net All that's really worth doing is what we do for others.- Lewis Carrol ___ 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
port graphics/gd build fails with XPM or FONTCONFIG or ICONV=on
On i386 and i64 with FBSD 7.2 and 8.0-beta1 port graphics/gd fails to build if any of the following options are set: XPM=on FONTCONFIG=on ICONV=on with /usr/bin/ld: warning: libjpeg.so.9, needed by /usr/local/lib/libgd.so, not found (try using -rpath or -rpath-link) /usr/local/lib/libgd.so: undefined reference to `jpeg_read_scanlines' /usr/local/lib/libgd.so: undefined reference to `jpeg_simple_progression' /usr/local/lib/libgd.so: undefined reference to `jpeg_set_defaults' /usr/local/lib/libgd.so: undefined reference to `jpeg_start_decompress' /usr/local/lib/libgd.so: undefined reference to `jpeg_destroy' /usr/local/lib/libgd.so: undefined reference to `jpeg_write_marker' /usr/local/lib/libgd.so: undefined reference to `jpeg_destroy_decompress' /usr/local/lib/libgd.so: undefined reference to `jpeg_std_error' /usr/local/lib/libgd.so: undefined reference to `jpeg_CreateDecompress' /usr/local/lib/libgd.so: undefined reference to `jpeg_read_header' /usr/local/lib/libgd.so: undefined reference to `jpeg_start_compress' /usr/local/lib/libgd.so: undefined reference to `jpeg_destroy_compress' /usr/local/lib/libgd.so: undefined reference to `jpeg_finish_decompress' /usr/local/lib/libgd.so: undefined reference to `jpeg_resync_to_restart' /usr/local/lib/libgd.so: undefined reference to `jpeg_CreateCompress' /usr/local/lib/libgd.so: undefined reference to `jpeg_finish_compress' /usr/local/lib/libgd.so: undefined reference to `jpeg_set_quality' /usr/local/lib/libgd.so: undefined reference to `jpeg_save_markers' /usr/local/lib/libgd.so: undefined reference to `jpeg_write_scanlines' *** Error code 1 Stop in /usr/ports/graphics/gd/work/gd-2.0.35. *** Error code 1 I linking should be done against libjpeg.so.10 If all these three options are off (default) then build goes fine. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ 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
How to doc available?
Anyone know of a good tutorial for making a system on a USB key in limited space? I have a project that requires enough of running system with lighttpd and php5 to do some network magick. I would like to keep the thing below 512MB but if that is not feasible then I'll shoot for whatever the smallest I can get away with. Thanks, in advance. Cheers. m ___ 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: How to doc available?
excuse-me, but what is the problem with size??? I have a PQI stick that is 29mm X 11mm X 2.5mm and have 4gbytes... and works very good... sells for US$12 here... take a look: http://www.pqigroup.com/product2.asp?oid=19cate1=19proid=333 you have inside 4Bg of storage.. usb2.0 ___ 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: limit to number of files seen by ls?
John Almberg wrote: Which is why I'm starting to think that (a) my problem is different or (b) I'm so clueless that there isn't any problem at all, and I'm just not understanding something (most likely scenario!) It looks to me like the thread began assuming that you must be typing `ls *` in order to run into problems. I think we'll have better luck helping you if you tell us exactly what it is you're typing when you observe the problem. -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley pgpRRYgwUaZNY.pgp Description: PGP signature
bsdstats.org - fatal error
Connecting to bsdstats.org I get this error: Fatal error: Call to undefined function preg_replace() in /usr/local/www/bsdstats.org/www/bsdstats/sbin/uri.php on line 142 Is there a problem with this site? -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ 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: bsdstats.org - fatal error
On Mon, Jul 27, 2009 at 4:43 PM, Anton Shterenlikhtme...@bristol.ac.uk wrote: Connecting to bsdstats.org I get this error: Fatal error: Call to undefined function preg_replace() in /usr/local/www/bsdstats.org/www/bsdstats/sbin/uri.php on line 142 Is there a problem with this site? It appears so. -- Glen Barber ___ 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
Are you looking for a web designer
Professional, Precise, Creative July 2009 / Issue#1 Services - [http://www.emaxinteractive.com/webdesign.html] Web Design - [http://www.emaxinteractive.com/printdesigns.html] Print Design - [http://www.emaxinteractive.com/searchmarketing.html] SEO Optimization - [http://www.emaxinteractive.com/jingles.html] Jingles Voice-Overs - [http://www.emaxinteractive.com/ppp.html] Power Point Presentations - [http://www.emaxinteractive.com/flashdesign.html] Flash Design - [http://www.emaxinteractive.com/contact.html] Contact Us Tip of the Week The easiest HTML guide for beginners Let's begin to create your first web page. To make this truly the easiest guide, we will ignore some technical terms and details that you don't need to know right now. This tutorial will guide you in creating a simple web page containing text, image, links to other web pages, and email link. What you need for this tutorial is only a simple text editor program like Notepad or other programs that you use for writing text on your machine. If you're using Windows 95/98, just click 'Start' - 'Programs' - 'Accessories' - 'Notepad'.. [http://www.emaxinteractive.com/tips.html] Click here to read more.. Latest Projects [http://www.mme-productions.com] Special Offers [mailto:rvasq...@emaxinteractive.com?subject=i want to find out more information] Email to find out about prices - 5000 Business cards designed and printed - 5000 Flyers designed and printed - Search Engine Optimization - Flash Banners - Web Updates - Motion Graphic ads - Website Optimization - Company Logos - Call or email for custom website quotes - Call or email about our referral program - Integrating Ecommerce Contact Us [mailto:rvasq...@emaxinteractive.com?subject=i would like more information] [webdesign.html] Innovative Website Design | [flashdesign.html] Interactive Flash Design | [searchmarketing.html] Internet Search Marketing | [localmarketing.html] Local Internet Marketing [videomarketing.html] Video Marketing | [socialmediamarketing.html] Social Media Marketing | [about.html] Brand Imaging | [about.html] Agency Info | [contact.html] Contact Us | [sitemap.html] Site Map | [index.html] Home © Emax Media Design 2009 / all rights reserved This message was sent by: MME Productions, 701 Bedford ave, Bellmore, NY 11710 Email Marketing by iContact: http://freetrial.icontact.com Manage your subscription: http://app.icontact.com/icp/mmail-mprofile.pl?r=36362999l=29218s=GELIm=242238c=523882 Forward to a friend: http://app.icontact.com/icp/sub/forward?m=242238s=36362999c=GELIcid=523882 ___ 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: How to doc available?
On Jul 27, 2009, at 4:00 PM, Sergio de Almeida Lenzi wrote: excuse-me, but what is the problem with size??? I have a PQI stick that is 29mm X 11mm X 2.5mm and have 4gbytes... and works very good... sells for US$12 here... take a look: http://www.pqigroup.com/product2.asp?oid=19cate1=19proid=333 you have inside 4Bg of storage.. usb2.0 The problem is that my client has mandated that it be below 640MB so I can not, as much as I would prefer, use a 4GB stick. ___ 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: limit to number of files seen by ls?
On Monday 27 July 2009 12:42:32 Chris Cowart wrote: John Almberg wrote: Which is why I'm starting to think that (a) my problem is different or (b) I'm so clueless that there isn't any problem at all, and I'm just not understanding something (most likely scenario!) It looks to me like the thread began assuming that you must be typing `ls *` in order to run into problems. Yeah, I just noticed that too. So how did you determine there should be ~4000 files in the directory when ls shows ~2300. Also, does ls give an error message? ls -l /tmp/out should clear that up and you can use wc -l /tmp/out to see how many files are returned. -- Mel ___ 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
bsdstats - fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((manager-lock))) == 0)
On ia64 8.0-beta1 SMP, running bsdstats-5.4_2, I get this error: # /usr/local/etc/periodic/monthly/300.statistics /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/task.c:1023: fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((manager-lock))) == 0) ? 0 : 34) == 0) failed [:1: unexpected operator # I recall some mutex errors reported by perl-10 tests. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ 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: Free bSD Turkish Translation
Le Mon, 27 Jul 2009 11:56:53 +0300, eyup yavas eyup...@gmail.com a écrit : http://www.tr.freebsd.org/ Add yoru Turkish Language Updated Please (Upayi Network) Based on BSD UNIX® = Thanks, I think you should submit this to the doc mailing list (freebsd-...@freebsd.org). Regards. ___ 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: How to doc available?
On Mon, Jul 27, 2009 at 03:19:17PM -0400, Mikel King wrote: Anyone know of a good tutorial for making a system on a USB key in limited space? I have a project that requires enough of running system with lighttpd and php5 to do some network magick. I would like to keep the thing below 512MB but if that is not feasible then I'll shoot for whatever the smallest I can get away with. Have you tried it yet? Once Upon A Time Not So Long Ago, 512MB was a *huge* system disk. And as others have pointed out much larger USB stick is cheap. So how many hours are you willing to spend to save $12? -- David Kelly N4HHE, dke...@hiwaay.net Whom computers would destroy, they must first drive mad. ___ 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
ipf rules question
Ladies and Gentlemen, I think I am missing something. I am running a FreeBSD 6. server with ipf compiled into the kernel. Following are the headers from an email. From: oea...@brantbenun.com Subject: SUSPECTED SPAM REAL Doctors, REAL Science, REAL Results! Date: July 27, 2009 2:33:25 PM CDT To: xx...@mnea.org Reply-To: oea...@brantbenun.com Received: from mail.mnea.org ([10.129.10.45]) by mo-hq-s1.mo.loc with Microsoft SMTPSVC(6.0.3790.1830); Mon, 27 Jul 2009 14:33:29 -0500 Received: by mail.mnea.org (Postfix, from userid 10071) id 572563F661; Mon, 27 Jul 2009 14:33:29 -0500 (CDT) Received: from speedtouch.lan (213-84-78-162.adsl.xs4all.nl [82.95.130.154]) by mail.mnea.org (Postfix) with ESMTP id DD9233F659 for x...@mnea.org; Mon, 27 Jul 2009 14:33:24 -0500 (CDT) Received: from 82.95.130.154 by smtp.secureserver.net; Mon, 27 Jul 2009 20:33:25 +0100 Following are the relevant entries from /var/log/maillog Jul 27 14:33:22 mail postfix/smtpd[8557]: connect from 213-84-78-162.adsl.xs4all.nl[82.95.130.154] Jul 27 14:33:24 mail postfix/smtpd[8557]: DD9233F659: client=213-84-78-162.adsl.xs4all.nl[82.95.130.154] Jul 27 14:33:26 mail postfix/cleanup[7974]: DD9233F659: message-id=824460019.99376997845...@brantbenun.com Jul 27 14:33:26 mail postfix/qmgr[52904]: DD9233F659: from=oea...@brantbenun.com , size=1245, nrcpt=1 (queue active) And, following is the output from ipfstat showing the relevant rule(s). @140 block in quick proto tcp from 82.0.0.0/8 to any port = smtp If I am looking at everything correctly all traffic coming into the system from the 82.0.0.0/8 network to port 25 on the mail server should be blocked. What am I missing? Thanks for your help. Jay ___ 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
What order are options in rc.conf processed?
We have an rc.conf file that looks something like this: ifconfig_nfe0=UP ifconfig_nfe1=UP cloned_interfaces=lagg0 ifconfig_lagg0=laggproto failover laggport nfe0 laggport nfe1 ip netmask mask defaultrouter=router-ip ... ourapp_enable=YES In a recent reboot test, when ourapp started, it checked to see if an IP was assigned to the system and there was not, causing it to take an unexpected logic path. Our understanding though was that since we had an entry in rc.conf defining the IP then our app should have started after that IP was assigned. Is this true or is there potentially a timing issue here? ___ 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: ipf rules question
On Jul 27, 2009, at 2:27 PM, Jay Hall wrote: [ ... ] If I am looking at everything correctly all traffic coming into the system from the 82.0.0.0/8 network to port 25 on the mail server should be blocked. What am I missing? Maybe they are connecting to the MSP aka 587/tcp rather than port 25? It's hard to tell from your message which mailserver lines are from machines under your control; try editting the mail headers a little less and we might be able to do better. Otherwise, maybe your firewall rules are not working, are applied to the wrong network interface, etc. Regards, -- -Chuck ___ 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: What order are options in rc.conf processed?
Does your application startup script require NETWORKING? Just a shot in the dark from a newbie. -jgh On Mon, Jul 27, 2009 at 02:43:04PM -0700, Peter Steele thus spake: We have an rc.conf file that looks something like this: ifconfig_nfe0=UP ifconfig_nfe1=UP cloned_interfaces=lagg0 ifconfig_lagg0=laggproto failover laggport nfe0 laggport nfe1 ip netmask mask defaultrouter=router-ip ... ourapp_enable=YES In a recent reboot test, when ourapp started, it checked to see if an IP was assigned to the system and there was not, causing it to take an unexpected logic path. Our understanding though was that since we had an entry in rc.conf defining the IP then our app should have started after that IP was assigned. Is this true or is there potentially a timing issue here? ___ 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: What order are options in rc.conf processed?
On Monday 27 July 2009 13:43:04 Peter Steele wrote: In a recent reboot test, when ourapp started, it checked to see if an IP was assigned to the system and there was not, causing it to take an unexpected logic path. Our understanding though was that since we had an entry in rc.conf defining the IP then our app should have started after that IP was assigned. Is this true or is there potentially a timing issue here? It is false. See the manpage for rcorder, specifically the BEFORE and REQUIRE keywords. However, there still may be a timing issue, if ourapp requires the interface to be up (not just an IP assigned). -- Mel ___ 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: What order are options in rc.conf processed?
In the last episode (Jul 27), Peter Steele said: We have an rc.conf file that looks something like this: [...] In a recent reboot test, when ourapp started, it checked to see if an IP was assigned to the system and there was not, causing it to take an unexpected logic path. Our understanding though was that since we had an entry in rc.conf defining the IP then our app should have started after that IP was assigned. Is this true or is there potentially a timing issue here? rc.conf is just a script that sets a bunch of environment variables for the /etc/rc.d/* scripts to use. The order the variables are set in that file does not matter. If you want your script to run after network interfaces are set up, you'll want to add a REQUIRE: NETWORKING line. See the rc and rcorder manpages for more info, and take a look at the files in /etc/rc.d/ for examples. -- Dan Nelson dnel...@allantgroup.com ___ 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: ipf rules question
On Jul 27, 2009, at 4:40 PM, Chuck Swiger wrote: On Jul 27, 2009, at 2:27 PM, Jay Hall wrote: [ ... ] If I am looking at everything correctly all traffic coming into the system from the 82.0.0.0/8 network to port 25 on the mail server should be blocked. What am I missing? Otherwise, maybe your firewall rules are not working, are applied to the wrong network interface, etc. Sorry about the confusion. Postfix is listening on port 25 on mail.mnea.org. Port 587 is not open. I will post some modified log files shortly. Jay ___ 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: What order are options in rc.conf processed?
Your startup script needs to require NETWORKING, though, and any other service it may need. Beyond this, you can use the rcorder command. -jgh On Mon, Jul 27, 2009 at 03:07:24PM -0700, Peter Steele thus spake: Well, if I understand what you mean, then yes, our app requires networking. But it has two logic paths: If it sees the system has an IP assigned it goes into one mode and if it does not have an IP assigned it goes into another mode. In the case we've encountered the app takes the no IP assigned path, even though we have an IP defined in rc.conf. We're trying to understand how this could happen and are wondering how the options in rc.conf are processed. -Original Message- From: Jason [mailto:jhelf...@e-e.com] Sent: Monday, July 27, 2009 2:44 PM To: Peter Steele Cc: freebsd-questions@freebsd.org Subject: Re: What order are options in rc.conf processed? Does your application startup script require NETWORKING? Just a shot in the dark from a newbie. -jgh On Mon, Jul 27, 2009 at 02:43:04PM -0700, Peter Steele thus spake: We have an rc.conf file that looks something like this: ifconfig_nfe0=UP ifconfig_nfe1=UP cloned_interfaces=lagg0 ifconfig_lagg0=laggproto failover laggport nfe0 laggport nfe1 ip netmask mask defaultrouter=router-ip ... ourapp_enable=YES In a recent reboot test, when ourapp started, it checked to see if an IP was assigned to the system and there was not, causing it to take an unexpected logic path. Our understanding though was that since we had an entry in rc.conf defining the IP then our app should have started after that IP was assigned. Is this true or is there potentially a timing issue here? ___ 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: What order are options in rc.conf processed?
rc.conf is just a script that sets a bunch of environment variables for the /etc/rc.d/* scripts to use. The order the variables are set in that file does not matter. If you want your script to run after network interfaces are set up, you'll want to add a REQUIRE: NETWORKING line. See the rc and rcorder manpages for more info, and take a look at the files in /etc/rc.d/ for examples. Okay, thanks. That's exactly what I was looking for. I'll check the man page for these. ___ 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: What order are options in rc.conf processed?
Well, if I understand what you mean, then yes, our app requires networking. But it has two logic paths: If it sees the system has an IP assigned it goes into one mode and if it does not have an IP assigned it goes into another mode. In the case we've encountered the app takes the no IP assigned path, even though we have an IP defined in rc.conf. We're trying to understand how this could happen and are wondering how the options in rc.conf are processed. -Original Message- From: Jason [mailto:jhelf...@e-e.com] Sent: Monday, July 27, 2009 2:44 PM To: Peter Steele Cc: freebsd-questions@freebsd.org Subject: Re: What order are options in rc.conf processed? Does your application startup script require NETWORKING? Just a shot in the dark from a newbie. -jgh On Mon, Jul 27, 2009 at 02:43:04PM -0700, Peter Steele thus spake: We have an rc.conf file that looks something like this: ifconfig_nfe0=UP ifconfig_nfe1=UP cloned_interfaces=lagg0 ifconfig_lagg0=laggproto failover laggport nfe0 laggport nfe1 ip netmask mask defaultrouter=router-ip ... ourapp_enable=YES In a recent reboot test, when ourapp started, it checked to see if an IP was assigned to the system and there was not, causing it to take an unexpected logic path. Our understanding though was that since we had an entry in rc.conf defining the IP then our app should have started after that IP was assigned. Is this true or is there potentially a timing issue here? ___ 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: Bind 9 (Was: bsdstats) - fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((manager-lock))) == 0)
On Monday 27 July 2009 13:17:51 Anton Shterenlikht wrote: On ia64 8.0-beta1 SMP, running bsdstats-5.4_2, I get this error: # /usr/local/etc/periodic/monthly/300.statistics /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/task.c:1023: fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((manager-lock))) == 0) ? 0 : 34) == 0) failed That error from bind, [:1: unexpected operator Is not handled gracefully in the bsdstats script. The annoyance is that ISC Bind finds it not useful to print errno, which is what you'd need to figure out why this lock can't be destroyed. It is however a programming error in bind, or a rare case of stack corruption by the kernel. If you see this error a lot or can reliably reproduce it, I'd file a PR. -- Mel ___ 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
Are you looking for a web designer
Professional, Precise, Creative July 2009 / Issue#1 Services - [http://www.emaxinteractive.com/webdesign.html] Web Design - [http://www.emaxinteractive.com/printdesigns.html] Print Design - [http://www.emaxinteractive.com/searchmarketing.html] SEO Optimization - [http://www.emaxinteractive.com/jingles.html] Jingles Voice-Overs - [http://www.emaxinteractive.com/ppp.html] Power Point Presentations - [http://www.emaxinteractive.com/flashdesign.html] Flash Design - [http://www.emaxinteractive.com/contact.html] Contact Us Tip of the Week The easiest HTML guide for beginners Let's begin to create your first web page. To make this truly the easiest guide, we will ignore some technical terms and details that you don't need to know right now. This tutorial will guide you in creating a simple web page containing text, image, links to other web pages, and email link. What you need for this tutorial is only a simple text editor program like Notepad or other programs that you use for writing text on your machine. If you're using Windows 95/98, just click 'Start' - 'Programs' - 'Accessories' - 'Notepad'.. [http://www.emaxinteractive.com/tips.html] Click here to read more.. Latest Projects [http://www.mme-productions.com] Special Offers [mailto:rvasq...@emaxinteractive.com?subject=i want to find out more information] Email to find out about prices - 5000 Business cards designed and printed - 5000 Flyers designed and printed - Search Engine Optimization - Flash Banners - Web Updates - Motion Graphic ads - Website Optimization - Company Logos - Call or email for custom website quotes - Call or email about our referral program - Integrating Ecommerce Contact Us [mailto:rvasq...@emaxinteractive.com?subject=i would like more information] [webdesign.html] Innovative Website Design | [flashdesign.html] Interactive Flash Design | [searchmarketing.html] Internet Search Marketing | [localmarketing.html] Local Internet Marketing [videomarketing.html] Video Marketing | [socialmediamarketing.html] Social Media Marketing | [about.html] Brand Imaging | [about.html] Agency Info | [contact.html] Contact Us | [sitemap.html] Site Map | [index.html] Home © Emax Media Design 2009 / all rights reserved This message was sent by: MME Productions, 701 Bedford ave, Bellmore, NY 11710 Email Marketing by iContact: http://freetrial.icontact.com Manage your subscription: http://app.icontact.com/icp/mmail-mprofile.pl?r=36362999l=29218s=GELIm=242037c=523882 Forward to a friend: http://app.icontact.com/icp/sub/forward?m=242037s=36362999c=GELIcid=523882 ___ 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
ntpd / time synchronization
Hello, I guess there is something simple that is wrong but my server is not really keeping the correct time. I have these options in /etc/rc.conf ntpd_enable=YES ntpd_flags=-g -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntp.drift and here's the details of /etc/ntp.conf file: server 0.pl.pool.ntp.org server 1.pl.pool.ntp.org server 2.pl.pool.ntp.org server 3.pl.pool.ntp.org driftfile /var/db/ntp.drift restrict default nopeer nomodify I used to have server 0.europe.pool.ntp.org in the ntp.conf file but today changed all entries to *.pl.pool.* At the moment my clock is about 3 minutes behind time. It has been running for a year and I do not have ntpdate enabled so I guess subsequent reboots did not correct the drifting problem. Is there anything obvious I am missing here? Any advice would be greatly appreciated! Thank you all very much! Zbigniew Szalbot www.slowo.pl www.fairtrade.net.pl ___ 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: ntpd / time synchronization
On Jul 27, 2009, at 3:44 PM, Zbigniew Szalbot wrote: and here's the details of /etc/ntp.conf file: server 0.pl.pool.ntp.org server 1.pl.pool.ntp.org server 2.pl.pool.ntp.org server 3.pl.pool.ntp.org driftfile /var/db/ntp.drift restrict default nopeer nomodify I used to have server 0.europe.pool.ntp.org in the ntp.conf file but today changed all entries to *.pl.pool.* At the moment my clock is about 3 minutes behind time. It has been running for a year and I do not have ntpdate enabled so I guess subsequent reboots did not correct the drifting problem. Is there anything obvious I am missing here? Any advice would be greatly appreciated! You can't readily combine a restrict statement with using random timeservers from the NTP pool; you would need to list specific servers and add blank restrict statements for each server you trust. What you've configured is likely querying the 4 servers listed for time, but not trusting their responses so your clock never find a server which it is willing to sync to. Running ntpq -p -c rv would be informative Regards, -- -Chuck ___ 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: ntpd / time synchronization
On Tue, Jul 28, 2009 at 12:44:50AM +0200, Zbigniew Szalbot wrote: Hello, I guess there is something simple that is wrong but my server is not really keeping the correct time. I have these options in /etc/rc.conf ntpd_enable=YES ntpd_flags=-g -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntp.drift and here's the details of /etc/ntp.conf file: server 0.pl.pool.ntp.org server 1.pl.pool.ntp.org server 2.pl.pool.ntp.org server 3.pl.pool.ntp.org driftfile /var/db/ntp.drift restrict default nopeer nomodify I used to have server 0.europe.pool.ntp.org in the ntp.conf file but today changed all entries to *.pl.pool.* At the moment my clock is about 3 minutes behind time. It has been running for a year and I do not have ntpdate enabled so I guess subsequent reboots did not correct the drifting problem. Is there anything obvious I am missing here? Any advice would be greatly appreciated! what does ntpq -p give you? -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ 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: ntpd / time synchronization
Chuck Swiger pisze: You can't readily combine a restrict statement with using random timeservers from the NTP pool; you would need to list specific servers and add blank restrict statements for each server you trust. What you've configured is likely querying the 4 servers listed for time, but not trusting their responses so your clock never find a server which it is willing to sync to. Running ntpq -p -c rv would be informative Well, it seems you are right :) $ ntpq -p -c rv ntpq: read: Connection refused ntpq: read: Connection refused I took it from http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ntp.html [quote] If you want to deny all machines from accessing your NTP server, add the following line to /etc/ntp.conf: restrict default ignore [/quote] OK. So removing the restrictions should cause the time to be synced? Thank you for your patience and help! Zbigniew Szalbot www.slowo.pl www.fairtrade.net.pl ___ 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: How to doc available?
2009/7/27 Mikel King mikel.k...@olivent.com: Anyone know of a good tutorial for making a system on a USB key in limited space? I have a project that requires enough of running system with lighttpd and php5 to do some network magick. I would like to keep the thing below 512MB but if that is not feasible then I'll shoot for whatever the smallest I can get away with. Thanks, in advance. Cheers. m I'm going to try to answer your question rather than tell you you're wrong. It's possible, and not difficult. Option 1) I'm pretty sure a default install of FreeBSD covers a little less than 640 MB; have you just tried that? [ch...@amnesiac]/usr% df -h / Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1a421M203M185M52%/ [ch...@amnesiac]/usr% du -hc /boot/xboxkern.0/ 112M/boot/xboxkern.0/ 112Mtotal [ch...@amnesiac]/usr% du -hc bin include lib sbin share games libdata snip 292Mshare/doc snip 428Mtotal [ch...@amnesiac]/usr% So, excluding /usr/share/doc, and /boot/xboxkern.0 (a leftover from when amnesiac was an xbox), my install with no ports etc is ~203-112=91MB for /, 428-292=136MB for /usr, plus /var and /tmp (both minimal if properly managed and trimmed) makes ~250 MB; way less than the 500 MB specified. You could probably even install Apache on that! If I've missed anything glaringly obvious, please correct me someone Option 2) Try http://www.freebsd.org/doc/en/articles/nanobsd/index.html Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: ntpd / time synchronization
Hi-- On Jul 27, 2009, at 4:08 PM, Zbigniew Szalbot wrote: OK. So removing the restrictions should cause the time to be synced? Thank you for your patience and help! Yes, try it and see-- it's most likely to be the cause of problems. If you want to set a default restrict line, you'll want to use a setup like the following, with explicit restrict statements added for localhost and each of the remote timeservers: server ntp.pbx.org maxpoll 11 server bonehed.lcs.mit.edu maxpoll 9 server sundial.columbia.edu maxpoll 11 server time1.apple.com maxpoll 11 peer ns1.codefab.com maxpoll 9 peer ns2.codefab.com maxpoll 9 restrict default kod nomodify notrap nopeer restrict -6 default kod nomodify notrap nopeer noquery # localhost is unrestricted restrict 127.0.0.1 restrict -6 ::1 restrict ntp.pbx.org restrict bonehed.lcs.mit.edu restrict sundial.columbia.edu restrict time1.apple.com restrict ns1.codefab.com restrict ns2.codefab.com Regards, -- -Chuck ___ 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
replacing GNATS?
i remember reading an interview with a fbsd maintainer where he stated that nobody's happy with the old GNATS bug tracking system, but since it works they're keeping it. why not move to bugzilla or another bug tracking system? most of them come with GNATS_2_* scripts. switching from cvs to svn (except ports) worked pretty well so why not continue in that fashion? cheers. alex ___ 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: updating to ghostscript8-8.64_2 fails
Sergio de Almeida Lenzi wrote: Strange here it works... both in amd64 as in i386 software ghostsctip8-8.64_6 On my slightly dated installation of 8.0-Current it worked, too. It only fails on my 7.2-Stable box (both are i386). Regards, Philipp P.S.: Please CC me in your replies, I'm not subscribed to questions@ ___ 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: replacing GNATS?
On Mon, Jul 27, 2009 at 7:31 PM, Alexander Bestalexbes...@math.uni-muenster.de wrote: i remember reading an interview with a fbsd maintainer where he stated that nobody's happy with the old GNATS bug tracking system, but since it works they're keeping it. why not move to bugzilla or another bug tracking system? most of them come with GNATS_2_* scripts. switching from cvs to svn (except ports) worked pretty well so why not continue in that fashion? Hi, Alexander I don't know if this is what you were referencing about the interview, but there was a funded project announcement in June about this: http://lists.freebsd.org/pipermail/freebsd-announce/2009-June/001261.html Just in case that's not what you're referring to. Cheers. (Disclaimer: No, I am not justifying GNATS over Bugzilla, cvs over svn, etc, etc. It was unclear to me if you were referring to the same 'interview', and I thought I would provide a link.) -- Glen Barber ___ 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: How to doc available?
On Jul 27, 2009, at 7:05 PM, Chris Rees wrote: 2009/7/27 Mikel King mikel.k...@olivent.com: Anyone know of a good tutorial for making a system on a USB key in limited space? I have a project that requires enough of running system with lighttpd and php5 to do some network magick. I would like to keep the thing below 512MB but if that is not feasible then I'll shoot for whatever the smallest I can get away with. Thanks, in advance. Cheers. m I'm going to try to answer your question rather than tell you you're wrong. It's possible, and not difficult. Option 1) I'm pretty sure a default install of FreeBSD covers a little less than 640 MB; have you just tried that? [ch...@amnesiac]/usr% df -h / Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1a421M203M185M52%/ [ch...@amnesiac]/usr% du -hc /boot/xboxkern.0/ 112M/boot/xboxkern.0/ 112Mtotal [ch...@amnesiac]/usr% du -hc bin include lib sbin share games libdata snip 292Mshare/doc snip 428Mtotal [ch...@amnesiac]/usr% So, excluding /usr/share/doc, and /boot/xboxkern.0 (a leftover from when amnesiac was an xbox), my install with no ports etc is ~203-112=91MB for /, 428-292=136MB for /usr, plus /var and /tmp (both minimal if properly managed and trimmed) makes ~250 MB; way less than the 500 MB specified. You could probably even install Apache on that! If I've missed anything glaringly obvious, please correct me someone Option 2) Try http://www.freebsd.org/doc/en/articles/nanobsd/ index.html Chris Chris, Thank you for your detailed answer. Most appreciated as is the URL to nanobsd so that I can RTFM... Cheers, m! ___ 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
mysql50-server root login
I'm having trouble getting my MySQL server root password to stick. After installing through ports, I run mysql_install_db which gives me two commands to set the root password through mysqladmin. I do this and all is well. I can login as root with no problems. After a reboot however, the I can't get in. Any ideas? Stew ___ 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: mysql50-server root login
After running mysql_install_db, the mysql files are owned by root:wheel instead of mysql:mysql I've noticed that is a missing step in the docs. # mysql_install_db # chown -R mysql:mysql /var/db/mysql # /usr/local/etc/rc.d/mysql start How it sticks long enough until reboot sounds like a memory cache, which is flushed of course at reboot. --TJ On 7/27/09, Stew Houston stewhous...@gmail.com wrote: I'm having trouble getting my MySQL server root password to stick. After installing through ports, I run mysql_install_db which gives me two commands to set the root password through mysqladmin. I do this and all is well. I can login as root with no problems. After a reboot however, the I can't get in. Any ideas? Stew ___ 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: mysql50-server root login
On Monday 27 July 2009 18:21:04 Tim Judd wrote: After running mysql_install_db, the mysql files are owned by root:wheel instead of mysql:mysql I've noticed that is a missing step in the docs. # mysql_install_db # chown -R mysql:mysql /var/db/mysql Or...you can just not do this at all. # /usr/local/etc/rc.d/mysql start Will create the auth tables, if they don't exist, with the correct ownerships: mysql_prestart() { if [ ! -d ${mysql_dbdir}/mysql/. ]; then mysql_create_auth_tables || return 1 fi -- Mel ___ 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: bsdstats not working in 7.1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm running it on 7-STABLE servers without any problem ... but notice that others responded that it appears you are on PC-BSD vs FreeBSD? As late as this answer is, are you still having an issue with it on your machine? - --On Sunday, March 01, 2009 19:20:21 +0800 Fbsd1 fb...@a1poweruser.com wrote: bsdstats is now in the base system. Have bsdstats_enable=YES is rc.conf Worked this way in 7.0. What am I missing here??? ___ 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 - -- Marc G. FournierHub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scra...@hub.org MSN . scra...@hub.org Yahoo . yscrappy Skype: hub.orgICQ . 7615664 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpuZFIACgkQ4QvfyHIvDvPpMwCfUaNbQJojcXS3Ph5DnesNVH0H fTMAniGG92QBY+3aELFu+xQZTUMVgiva =eaWl -END PGP SIGNATURE- ___ 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: bsdstats.org - fatal error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Are you still seeing the error ... ? I just checked everything on server, and it appears to be processing fine ... - --On Monday, July 27, 2009 21:43:42 +0100 Anton Shterenlikht me...@bristol.ac.uk wrote: Connecting to bsdstats.org I get this error: Fatal error: Call to undefined function preg_replace() in /usr/local/www/bsdstats.org/www/bsdstats/sbin/uri.php on line 142 Is there a problem with this site? -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ 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 - -- Marc G. FournierHub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scra...@hub.org MSN . scra...@hub.org Yahoo . yscrappy Skype: hub.orgICQ . 7615664 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpuY44ACgkQ4QvfyHIvDvNOrgCgnT7DyPkETX/839deAN4KdiQm CckAn3IcvZ10sJinKNa/LqGHcWYY/gL+ =B2dp -END PGP SIGNATURE- ___ 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: Bind 9 (Was: bsdstats) - fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((manager-lock))) == 0)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On Monday, July 27, 2009 14:07:44 -0800 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Monday 27 July 2009 13:17:51 Anton Shterenlikht wrote: On ia64 8.0-beta1 SMP, running bsdstats-5.4_2, I get this error: # /usr/local/etc/periodic/monthly/300.statistics /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/task.c:1023: fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((manager-lock))) == 0) ? 0 : 34) == 0) failed That error from bind, [:1: unexpected operator Is not handled gracefully in the bsdstats script. Is there something I can do to improve the script to handle it better? - -- Marc G. FournierHub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scra...@hub.org MSN . scra...@hub.org Yahoo . yscrappy Skype: hub.orgICQ . 7615664 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpuY+UACgkQ4QvfyHIvDvOquwCdGpyNjkbx2e/jt9TB48RX6JrD mJEAoL+l0a5UI3xCX/2/F+MJB5hPgIR/ =uH7U -END PGP SIGNATURE- ___ 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: source code licensing questions
On 27 jul 2009, at 14:42, son goku wrote: Thanks guys for the prompt answers!!! It seems weird that code that uses dtrace must be opened. I mean every serious production level application must have some dtrace-like mechanism inside to collect online information when needed. It is a shame that because of licensing issues, I will have to roll-my-own and re-invent the wheel all over again, probably with cruder and implementation that is more flawed compared to dtrace. Why don't you write it and release it under a BSD license? gr Arno ___ 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: Bind 9 (Was: bsdstats) - fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((manager-lock))) == 0)
On Monday 27 July 2009 18:35:17 Marc G. Fournier wrote: --On Monday, July 27, 2009 14:07:44 -0800 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Monday 27 July 2009 13:17:51 Anton Shterenlikht wrote: On ia64 8.0-beta1 SMP, running bsdstats-5.4_2, I get this error: # /usr/local/etc/periodic/monthly/300.statistics /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/task.c:1023: fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((manager-lock))) == 0) ? 0 : 34) == 0) failed That error from bind, [:1: unexpected operator Is not handled gracefully in the bsdstats script. Is there something I can do to improve the script to handle it better? Well, if OP can provide sh -x /usr/local/etc/periodic/monthly/300.statistics output, it's easier to see which variable is empty as a result of a resolver error. Then fix the test expression and either exit or use a retry_x_times mechanism. -- Mel ___ 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: bsdstats.org - fatal error
On Mon, Jul 27, 2009 at 10:33 PM, Marc G. Fournierfree...@hub.org wrote: Are you still seeing the error ... ? I just checked everything on server, and it appears to be processing fine ... Marc, The site appears responsive now. I too was seeing errors. -- Glen Barber ___ 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: bsdstats.org - fatal error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I did an upgrade to PHP and Apache, so suspect this was just befor I restart Apache with the new PHP :( Glad I don't have to do that often ... - --On Tuesday, July 28, 2009 00:23:59 -0400 Glen Barber glen.j.bar...@gmail.com wrote: On Mon, Jul 27, 2009 at 10:33 PM, Marc G. Fournierfree...@hub.org wrote: Are you still seeing the error ... ? I just checked everything on server, and it appears to be processing fine ... Marc, The site appears responsive now. I too was seeing errors. -- Glen Barber - -- Marc G. FournierHub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scra...@hub.org MSN . scra...@hub.org Yahoo . yscrappy Skype: hub.orgICQ . 7615664 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpugFsACgkQ4QvfyHIvDvMPJgCgjr91HnpOaxCOtMXuWeS7wMPJ sfIAn1sok4Hp5TJSK/Q+iGEbUk1BS4fJ =UtLS -END PGP SIGNATURE- ___ 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: svn+ssh server only
So the only one you had marked was the svnserve-wrapper ? in Make config On Mon, Jul 27, 2009 at 3:11 PM, John Almberg jalmb...@identry.com wrote: On Jul 26, 2009, at 7:35 PM, Kalle Møller wrote: Hi I'm trying to make a ssh+svn server only (apache is installed, but that is for view.vc) For what its worth, I just built a new svn server (to replace my old apache-based svn server that should have been replaced years ago, but it kept on doing the job). This time, I used a very simple set up, using svnserve without any authentication. I use pf to limit access to the small number of IP addresses that I use. This setup is super-simple, fast, and secure enough for my needs. -- John___ 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 -- Med Venlig Hilsen Kalle R. Møller ___ 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: How to find what symlink points to?
--- On Tue, 7/28/09, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: From: Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net Subject: Re: How to find what symlink points to? To: freebsd-questions@freebsd.org Date: Tuesday, July 28, 2009, 1:25 AM On Monday 27 July 2009 05:45:13 Unga wrote: Hi all I need to remove some unwanted symlinks on /dev using a C program. The struct dirent only shows the symlink name, how do I find what that symlink points to for verification purpose? By using the readlink(2) system call. But readlink(2) fails with errno set to 2. Can readlink(2) use with dev nodes? Works for me. errno 2 is ENOENT (No such file or directory). I would inspect if your request path points to the right location. % ./rl /dev/stderr /dev/stderr = fd/2 % cat rl.c #include sys/types.h #include sys/param.h #include unistd.h #include stdio.h #include stdlib.h #include string.h #include err.h int main(int argc, char **argv) { char path[MAXPATHLEN], buf[MAXPATHLEN+1]; ssize_t res; if( argc != 2 ) exit(67); (void)strlcpy(path, argv[1], sizeof(path)); res = readlink(path, buf, sizeof(buf)); if( res 0 ) err(EXIT_FAILURE, readlink()); buf[MAXPATHLEN] = '\0'; printf(%s = %s\n, path, buf); return (0); } Thanks everybody for valuable replies. In fact, I also used readlink(2) but fed the symlink path directly from dirent, which was partial, readlink(2) requires full path. Unga ___ 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: How to find what symlink points to?
On Monday 27 July 2009 20:54:51 Unga wrote: Thanks everybody for valuable replies. In fact, I also used readlink(2) but fed the symlink path directly from dirent, which was partial, readlink(2) requires full path. Nope it doesn't. It's the classical opendir does not chdir problem. readlink(2) requires a path that resolves from the current working directory of the program. If you opendir(3) /dev and are in /, then dirent-d_name is not valid for your cwd. Either you have to chdir or prepend the path given to opendir to dirent-d_name. % ./rl /dev/stdout stdout = fd/1 See the diff on previous rl.c below. -- Mel --- rl.c.orig 2009-07-27 09:19:58.0 -0800 +++ rl.c2009-07-27 21:25:48.0 -0800 @@ -9,13 +9,31 @@ int main(int argc, char **argv) { - char path[MAXPATHLEN], buf[MAXPATHLEN+1]; + char path[MAXPATHLEN], buf[MAXPATHLEN+1], *ptr; ssize_t res; if( argc != 2 ) exit(67); (void)strlcpy(path, argv[1], sizeof(path)); + ptr = strrchr(path, '/'); + if( ptr != NULL ) + { + char *tmp = ptr + 1; + + if( ptr == path ) + { + if( strlen(path) == 1 ) + errx(67, / can never be a symlink); + chdir(/); + } + else + { + *ptr = '\0'; + (void)chdir(path); + } + (void)strlcpy(path, tmp, sizeof(path)); + } res = readlink(path, buf, sizeof(buf)); if( res 0 ) err(EXIT_FAILURE, readlink()); ___ 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