Hi Bart: I can do better. I have tarballed a set of start scripts for FBSD. They barely vary from gentoo, debian Linux. You can type the following from the command line
: cd /usr/local/etc/rc.d : wget http://library.mobrien.com/dbmailadministrator/dbmail_start_scripts.tar : tar -xvf dbmail_start_scripts.tar : mysql_config # check location of your mysql libs and includes The one thing I suggest you check, Bart, is the MySQL libraries. There are optional install alternatives for the mysql libs and includes. Likely you are good to go but type mysql_config on the command line and make certain that --lib and --include match the following which is what is in the scripts. DBLIBDIR=/usr/local/lib/mysql:/usr/local/include/mysql best... Mike ----- Original Message ----- From: "Bart Burkhardt" <[EMAIL PROTECTED]> To: "'M. J. [Mike] O'Brien'" <[EMAIL PROTECTED]> Sent: Tuesday, March 08, 2005 3:44 AM Subject: RE: [Dbmail] FreeBSD start script doesn't work Hi Mike, Can you help me with that? i'm not yet a bash guru yet, and what i see from the script seems to be ok, but i don't understand the last part. load_rc_config "$name" : ${dbmail_pop3d_enable="NO"} : ${dbmail_pop3d_flags=""} run_rc_command "$1" //bart -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens M. J. [Mike] O'Brien Verzonden: dinsdag 8 maart 2005 4:37 Aan: DBMail mailinglist Onderwerp: Re: [Dbmail] FreeBSD start script doesn't work The script must be adjusted to suit your configuration. Open the script and edit according to your installation. mike ----- Original Message ----- From: "Bart Burkhardt" <[EMAIL PROTECTED]> To: "'DBMail mailinglist'" <[email protected]> Sent: Monday, March 07, 2005 7:08 PM Subject: [Dbmail] FreeBSD start script doesn't work Hi Group, i have a problem here........ Following bash script won't start dbmail, this file is located in /usr/local/etc/rc.d Name of the file is: dbmail-pop3.sh When I start the script with ./dbmail-pop3.sh start I get reply; i: not found Starting dbmail_pop3d. Then nothing happens. Strange thing is that when i start the program from the /usr/local/sbin dir, then the program starts fine. dbmail-pop3d -v -p /var/run/dbmail-pop3d.pid -f /usr/local/etc/dbmail.conf Escape character is '^]'. +OK DBMAIL pop3 server ready to rock <[EMAIL PROTECTED]> Any thoughts? //Bart Here the script: [dbmail-pop3.sh] #!/bin/sh # # $FreeBSD: ports/mail/dbmail/files/dbmail-pop3d.sh,v 1.1 2004/11/10 09:21:45 seanc Exp $ # # PROVIDE: dbmail-pop3d # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable dbmail-pop3d: # # # # dbmail_pop3d_enable="YES" # # # See dbmail-pop3d(8) for flags # ... /etc/rc.subr name=dbmail_pop3d rcvar=`set_rcvar` command=/usr/local/sbin/dbmail-pop3d pidfile=/var/run/dbmail-pop3d.pid required_files=/usr/local/etc/dbmail.conf # read settings, set default values load_rc_config "$name" : ${dbmail_pop3d_enable="NO"} : ${dbmail_pop3d_flags=""} run_rc_command "$1" _______________________________________________ Dbmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail _______________________________________________ Dbmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
