vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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. |
| |||
| 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 |
| |||
| 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) |
| |||
| 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. |
| ||||
| 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 |