Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

postfix refuses to come at boot time

2 views
Skip to first unread message

Arun Dev

unread,
Jan 23, 2005, 2:18:24 AM1/23/05
to
Hi Folks

In this Slackware 10.0 setup, the postfix service won't come up
at boot time :(

I can start it manually later (/etc/rc.d/rc.postfix start) or
add "postfix start" to rc.local.

Still my question is, why postfix remain silent disgracefully,
(no log entry anywhare) ?

It is the starndard setup:
/etc/rc.d/rc.M
--------------
...
if [ -x /etc/rc.d/rc.postfix]; then
. /etc/rc.d/rc.postfix start
fi
...

ls -l /etc/rc.d/rc.postfix
--------------------------
-rwxr-xr-x 1 root root 282 Feb 7 2004 rc.postfix*

/etc/rc.d/rc.postfix
--------------------
case "$1" in
'start')
/usr/sbin/postfix start
;;
'stop')
/usr/sbin/postfix stop
;;
'reload')
/usr/sbin/postfix reload
;;
'restart')
$0 stop
$0 start
;;
*)
echo "usage $0 start|stop|reload|restart"
esac
exit 0

Any clue why?


Arun

Simon

unread,
Jan 23, 2005, 2:34:27 AM1/23/05
to
On Sun, 23 Jan 2005 08:18:24 +0100, Arun Dev <nos...@pleaz.xy> wrote:
> It is the starndard setup:
> /etc/rc.d/rc.M
> --------------
> ...
> if [ -x /etc/rc.d/rc.postfix]; then
> . /etc/rc.d/rc.postfix start
> fi
> ...

That looks fine.

> ls -l /etc/rc.d/rc.postfix
> --------------------------
> -rwxr-xr-x 1 root root 282 Feb 7 2004 rc.postfix*

...as does that, but:

> /etc/rc.d/rc.postfix
> --------------------
> case "$1" in

This should start with '#!/bin/sh' (or '#!/bin/bash') on a line on its
own.


--
Simon <si...@no-dns-yet.org.uk> **** GPG: F4A23C69
"We demand rigidly defined areas of doubt and uncertainty."
- Douglas Adams

Arun Dev

unread,
Jan 23, 2005, 3:11:50 AM1/23/05
to
Hi

Simon wrote:
> ...


>
>>ls -l /etc/rc.d/rc.postfix
>>--------------------------
>>-rwxr-xr-x 1 root root 282 Feb 7 2004 rc.postfix*
>
>
> ...as does that, but:
>
>
>>/etc/rc.d/rc.postfix
>>--------------------
>>case "$1" in
>
>
> This should start with '#!/bin/sh' (or '#!/bin/bash') on a line on its
> own.

Ooh sorry! During my cut-and-paste over X that part got lost :(
It is there!

/etc/rc.d/rc.postfix
--------------------
#!/bin/sh
#
# Start/stop/restart the postfix MTA
#

case "$1" in
...

The problem still persists.

Arun

Thomas Overgaard

unread,
Jan 23, 2005, 4:23:13 AM1/23/05
to

Arun Dev wrote :

> if [ -x /etc/rc.d/rc.postfix]; then

Your missing a space right after "postfix", the line should be:
if [ -x /etc/rc.d/rc.postfix ]; then
--
Thomas O.

This area is designed to become quite warm during normal operation.

Arun Dev

unread,
Jan 23, 2005, 4:50:21 AM1/23/05
to
Thomas Overgaard wrote:
> Arun Dev wrote :
>
>
>>if [ -x /etc/rc.d/rc.postfix]; then
>
>
> Your missing a space right after "postfix", the line should be:
> if [ -x /etc/rc.d/rc.postfix ]; then

You saved my day!

Many thanks!!

Arun

Joost Kremers

unread,
Jan 23, 2005, 6:18:33 AM1/23/05
to
Simon wrote:
>> /etc/rc.d/rc.postfix
>> --------------------
>> case "$1" in
>
> This should start with '#!/bin/sh' (or '#!/bin/bash') on a line on its
> own.

no, not in this case, since the script is sourced, not executed. (i don't
have it in *my* rc.postfix, and it works fine.)

--
Joost Kremers joostk...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)

Thomas Overgaard

unread,
Jan 23, 2005, 8:34:59 AM1/23/05
to

Arun Dev wrote :

> Many thanks!!

Glad to see that there was someone who could benefit from my own
struggle with a missing space.

Simon

unread,
Jan 23, 2005, 5:10:50 PM1/23/05
to
On 23 Jan 2005 11:18:33 GMT, Joost Kremers <joostk...@yahoo.com> wrote:

> Simon wrote:
>> This should start with '#!/bin/sh' (or '#!/bin/bash') on a line on its
>> own.
>
> no, not in this case, since the script is sourced, not executed. (i don't
> have it in *my* rc.postfix, and it works fine.)

Sorry, you're right. I tend to execute my rc scripts instead of
sourcing them (well, they're sourced from other rc scripts, but I
execute them when I run them myself).

0 new messages