Ok I believe the $ in the export command corrected the problem with my qmail
script. When I execute # sh -x /usr/local/sbin/qmail start I get the
following output.
+ PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
+ export /var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export: /var/qmail/bin:/usr/local/bin:/usr/bin:/bin: not a legal variable
name
+ echo -n Starting qmail: svscan
Starting qmail: svscan+ cd /var/qmail/supervise
+ env - PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin svscan
+ echo 23844
+ echo .
.
+ exit 0
The "not a legal variable name" on the export line still worries me. Why is
it telling me that? Is the script still not correct? All of the qmail
processes seem to be running. Below is the out from "ps-ef|grep qmail".
Aren't all the processes listed here?
root 23845 23844 0 18:04 pts/0 00:00:00 supervise qmail-send
root 23847 23844 2 18:04 pts/0 00:00:08 supervise qmail-smtpd
qmails 23849 23845 0 18:04 pts/0 00:00:00 qmail-send
qmaill 23850 23848 0 18:04 pts/0 00:00:00 /usr/local/bin/multilog t
/var/l
qmaill 23852 23846 0 18:04 pts/0 00:00:00 /usr/local/bin/multilog t
/var/l
root 23857 23849 0 18:04 pts/0 00:00:00 qmail-lspawn ./Maildir/
qmailr 23858 23849 0 18:04 pts/0 00:00:00 qmail-rspawn
qmailq 23859 23849 0 18:04 pts/0 00:00:00 qmail-clean
root 14162 588 0 18:10 pts/0 00:00:00 grep qmail
Also, I am still having one major problem. Qmail does not start when the
system boots up. I have completed all the tasks in section 2.8 of LWQ. But
qmail still doesn't start on boot up. What am I doing wrong or what have I
missed?
Thank you,
Scott Wilson
-----Original Message-----
From: Grier Ellis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 22, 2000 1:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Problems with qmail startup script on Red Hat 6.1
Missed it by *that* much! You need a '$' in front of PATH
on your export command.
grier
[EMAIL PROTECTED] wrote:
>
> I have been going through LWQ trying to setup an Internet Mail server. I
> have done everthing in LWQ through section 2.8.2 System start-up files.
But
> this is the output I get when I run "sh -x /usr/local/sbin/qmail start"
>
> # sh -x /usr/local/sbin/qmail start
> +
> : command not foundil:
> + PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
> + export PATH
> : not a legal variable name
> +
> : command not foundil:
> 'usr/local/sbin/qmail: syntax error near unexpected token `in
> 'usr/local/sbin/qmail: /usr/local/sbin/qmail: line 6: `case "$1" in
>
> What have I done wrong?????
>
> Scott Wilson
> Information Systems Manager
> AAA Alabama
> [EMAIL PROTECTED]