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
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
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
> 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.
You saved my day!
Many thanks!!
Arun
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)
> Many thanks!!
Glad to see that there was someone who could benefit from my own
struggle with a missing space.
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).