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"