Sendmail gives trouble :-( linux:/etc/rc.d # ./sendmail restart Shutting down SMTP portkillproc: Usage: killproc [-v] [-t<sec>] [-g|-G] [-SIG] /full/path/to/program killproc -l killproc: Usage: killproc [-v] [-t<sec>] [-g|-G] [-SIG] /full/path/to/program killproc -l failed Initializing SMTP port (sendmail)startproc: Usage: startproc [+/-<prio>] [-s] [-u uid] [-g gid] [-v] [-l log_file|-q] /full/path/to/program startproc: Option -f requires pid file to read pid from failed What is happening? Why does sendmail not work? With ''sendmail -q'' the mailqueue is not emptied --Kees
* Kees Bergwerf (c.bergwerf@hccnet.nl) [021022 11:18]: ->Sendmail gives trouble :-( -> ->linux:/etc/rc.d # ./sendmail restart ->Shutting down SMTP portkillproc: Usage: -> killproc [-v] [-t<sec>] [-g|-G] [-SIG] /full/path/to/program -> killproc -l ->killproc: Usage: -> killproc [-v] [-t<sec>] [-g|-G] [-SIG] /full/path/to/program -> killproc -l -> failed ->Initializing SMTP port (sendmail)startproc: Usage: -> startproc [+/-<prio>] [-s] [-u uid] [-g gid] [-v] [-l log_file|-q] ->/full/path/to/program ->startproc: Option -f requires pid file to read pid from -> failed ->What is happening? Why does sendmail not work? ->With ''sendmail -q'' the mailqueue is not emptied Try 'rcsendmail stop|start|restart'. The above isn't the proper way on most any system to restart sendmail. :) -- Ben Rosenberg ---===---===---===--- mailto:ben@whack.org Tell me what you believe.. I tell you what you should see.
Ben Rosenberg wrote:
* Kees Bergwerf (c.bergwerf@hccnet.nl) [021022 11:18]: ->Sendmail gives trouble :-( -> ->linux:/etc/rc.d # ./sendmail restart ->Shutting down SMTP portkillproc: Usage: -> killproc [-v] [-t<sec>] [-g|-G] [-SIG] /full/path/to/program -> killproc -l ->killproc: Usage: -> killproc [-v] [-t<sec>] [-g|-G] [-SIG] /full/path/to/program -> killproc -l -> failed ->Initializing SMTP port (sendmail)startproc: Usage: -> startproc [+/-<prio>] [-s] [-u uid] [-g gid] [-v] [-l log_file|-q] ->/full/path/to/program ->startproc: Option -f requires pid file to read pid from -> failed ->What is happening? Why does sendmail not work? ->With ''sendmail -q'' the mailqueue is not emptied
Try 'rcsendmail stop|start|restart'. The above isn't the proper way on most any system to restart sendmail. :)
huh? rcsendmail is a link to /etc/init.d/sendmail /etc/rc.d/sendmail is identical to /etc/init.d/sendmail so why is what he is doing wrong? as far as his problem: can you start sendmail by hand? /usr/sbin/sendmail -bd what errors do you get if it fails...If it doesnt fail then you need to look at why the script is failing.. set -x maybe in the script? Jim suse8.0
* Jim Bonnet (jimbo@caldera.com) [021022 12:23]: -> ->huh? rcsendmail is a link to /etc/init.d/sendmail ->/etc/rc.d/sendmail is identical to /etc/init.d/sendmail -> ->so why is what he is doing wrong? oops.. I guess it changed from a stand alone script. I hadn't checked before I opened my big mouth. Nevermind. -- Ben Rosenberg ---===---===---===--- mailto:ben@whack.org Tell me what you believe.. I tell you what you should see.
* Ben Rosenberg (ben@whack.org) [021022 12:42]:
->/etc/rc.d/sendmail is identical to /etc/init.d/sendmail -> ->so why is what he is doing wrong?
oops.. I guess it changed from a stand alone script. I hadn't checked before I opened my big mouth. Nevermind.
It has always been a symlink. Original poster, can you please add ' -x' to the '#! /bin/sh' line in /etc/init.d/sendmail and post the output when running 'rcsendmail start' after running 'rcsendmail stop'. -- -ckm
On Tue, 22 Oct 2002, Christopher Mahmood wrote:
It has always been a symlink. Original poster, can you please add ' -x' to the '#! /bin/sh' line in /etc/init.d/sendmail and post the output when running 'rcsendmail start' after running 'rcsendmail stop'.
Alternatively, do this: /bin/sh -vx /etc/init.d/sendmail start > /tmp/lots_of_output 2>&1 It saves editing the failing script and maybe breaking it by mistake. I use this method because I have a tripwire thing that barfs all over my inbox whenever I change a config file or script. Check the #! line and use the same shell (/bin/sh, /bin/bash, /bin/tcsh :-) to get the right feature set and bug-for-bug compatibility settings. James F. Carter Voice 310 825 2897 FAX 310 206 6673 UCLA-Mathnet; 6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555 Email: jimc@math.ucla.edu http://www.math.ucla.edu/~jimc (q.v. for PGP key)
It has always been a symlink. Original poster, can you please add ' -x' to the '#! /bin/sh' line in /etc/init.d/sendmail and post the output when running 'rcsendmail start' after running 'rcsendmail stop'.
a lot of ilnes..... and then ++ norm= +++ echo -en '\015 ' ++ stat= ++ rc_done= done ++ rc_running= running ++ rc_failed= failed ++ rc_missed= missing ++ rc_skipped= skipped ++ rc_dead= dead ++ rc_unused= unused ++ rc_unknown= failedn ++ rc_reset=_up= ++ rc_save= ++ rc_restore= ++ _rc_status=0 ++ _rc_status_all=0 ++ _rc_todo=start ++ test start = status ++ test -n start + rc_reset + _rc_status=0 + _rc_status_all=0 + rc_check + _rc_check_ret=0 + test 0 -eq 0 + test 0 -eq 0 + return 0 + return 0 + echo -n 'Initializing SMTP port (sendmail)' Initializing SMTP port (sendmail)+ startproc -p /var/run/sendmail.pid /usr/sbin/sendmail -O DaemonPortOptions=Addr=127.0.0.1 -L sendmail -Am -bd -q30m -om startproc: Usage: startproc [+/-<prio>] [-s] [-u uid] [-g gid] [-v] [-l log_file|-q] /full/path/to/program + rc_status + rc_check + _rc_check_ret=8 {...] + return 0 + return 1 + echo -en + test -n '' + echo -en ' failed' failed+ echo -en + test -z '' + echo + return 1 + rc_exit + exit 1 btw, how can I let sendmail send the mail immediately without waiting for 30 minutes? --Kees
* Kees Bergwerf (c.bergwerf@hccnet.nl) [021022 13:21]:
Initializing SMTP port (sendmail)+ startproc -p /var/run/sendmail.pid /usr/sbin/sendmail -O DaemonPortOptions=Addr=127.0.0.1 -L sendmail -Am -bd -q30m -om startproc: Usage: startproc [+/-<prio>] [-s] [-u uid] [-g gid] [-v] [-l log_file|-q] /full/path/to/program
It looks like the startproc line has been wrapped onto two. Did you edit the init script? If so, remove the newline after 'startproc -p /var/run/sendmail.pid'. -- -ckm
Op dinsdag 22 oktober 2002 19:24, schreef Jim Bonnet:
can you start sendmail by hand?
/usr/sbin/sendmail -bd
YES!!! Why is it not started when SuSE boots up? I had to install linux from scratch :-( I tried grub but then the linux partitions were no longer usable :( Well I am glad that sendmail works now! Thanks! --Kees
participants (5)
-
Ben Rosenberg
-
Christopher Mahmood
-
Jim Bonnet
-
Jim Carter
-
Kees Bergwerf