Unix Technical Forum

postfix refuses to come at boot time

This is a discussion on postfix refuses to come at boot time within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi Folks In this Slackware 10.0 setup, the postfix service won't come up at boot time I can start ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 09:16 PM
Arun Dev
 
Posts: n/a
Default postfix refuses to come at boot time

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 09:16 PM
Simon
 
Posts: n/a
Default Re: postfix refuses to come at boot time

On Sun, 23 Jan 2005 08:18:24 +0100, Arun Dev <nospam@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 <simon@no-dns-yet.org.uk> **** GPG: F4A23C69
"We demand rigidly defined areas of doubt and uncertainty."
- Douglas Adams

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 09:16 PM
Arun Dev
 
Posts: n/a
Default Re: postfix refuses to come at boot time

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 09:16 PM
Thomas Overgaard
 
Posts: n/a
Default Re: postfix refuses to come at boot time


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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 09:16 PM
Arun Dev
 
Posts: n/a
Default Re: postfix refuses to come at boot time SOLVED!

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 09:16 PM
Joost Kremers
 
Posts: n/a
Default Re: postfix refuses to come at boot time

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 joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 09:16 PM
Thomas Overgaard
 
Posts: n/a
Default Re: postfix refuses to come at boot time SOLVED!


Arun Dev wrote :

> Many thanks!!


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

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 09:17 PM
Simon
 
Posts: n/a
Default Re: postfix refuses to come at boot time

On 23 Jan 2005 11:18:33 GMT, Joost Kremers <joostkremers@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).


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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com