Bug#396944: running exim4 not found
Bruce Sass
bmsass at shaw.ca
Mon Nov 6 11:50:39 CET 2006
On Mon November 6 2006 03:26, Marc Haber wrote:
> On Mon, Nov 06, 2006 at 02:55:52AM -0700, Bruce Sass wrote:
> Now, let's see the output of
> # EX4DEBUG=1 /etc/init.d/exim4 stop
root at onegee:~# ps aux|grep exim
102 13135 0.0 0.1 5352 1000 ? Ss 02:36 0:00 /usr/sbin/exim4 -bd -q30m
root 14696 0.0 0.0 1640 508 pts/3 R+ 03:39 0:00 grep exim
root at onegee:~# EX4DEBUG=1 /etc/init.d/exim4 stop
now debugging /etc/init.d/exim4 stop
+ ENV=env -i LANG=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
+ QUEUERUNNER=combined
+ QUEUEINTERVAL=30m
+ UPEX4OPTS=
+ PIDFILE=/var/run/exim4/exim.pid
+ QRPIDFILE=/var/run/exim4/eximqr.pid
+ [ -f /etc/default/exim4 ]
+ . /etc/default/exim4
+ EX4DEF_VERSION=
+ QUEUERUNNER=combined
+ QUEUEINTERVAL=30m
+ COMMONOPTIONS=
+ QUEUERUNNEROPTIONS=
+ QFLAGS=
+ SMTPLISTENEROPTIONS=
+ [ -f /etc/inetd.conf ]
+ grep -E -q ^[[:space:]]*((\*|[[:alnum:].-]+):)?smtp /etc/inetd.conf
+ DAEMON=/usr/sbin/exim4
+ NAME=exim4
+ test -x /usr/lib/exim4/exim4
+ log_daemon_msg Stopping MTA
+ [ -z Stopping MTA ]
+ [ -z ]
+ echo -n Stopping MTA:
Stopping MTA:+ return
+ stop_exim
+ [ -f /var/run/exim4/eximqr.pid ]
+ [ -f /var/run/exim4/exim.pid ]
+ start-stop-daemon --stop --pidfile /var/run/exim4/exim.pid --oknodo --retry 30 --exec /usr/sbin/exim4
+ log_progress_msg exim4_listener
+ [ -z exim4_listener ]
+ echo -n exim4_listener
exim4_listener+ rm -f /var/run/exim4/eximqr.pid /var/run/exim4/exim.pid
+ log_end_msg 0
+ [ -z 0 ]
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /usr/bin/tput setaf 1
+ RED=
+ /usr/bin/tput op
+ NORMAL=
+ [ 0 -eq 0 ]
+ echo .
.
+ return 0
+ warn_paniclog
+ [ -s /var/log/exim4/paniclog ]
+ exit 0
root at onegee:~# ls -al /var/run/exim4
total 1
drwxr-x--- 2 Debian-exim Debian-exim 48 Nov 6 03:39 .
drwxr-xr-x 22 root root 1048 Nov 5 21:31 ..
root at onegee:~# ps aux|grep exim
root at onegee:~# tail /var/log/exim4/mainlog
2006-11-06 02:35:03 End queue run: pid=13075
2006-11-06 02:36:57 IPv6 socket creation failed: Address family not supported by protocol
2006-11-06 02:36:57 Failed to create IPv6 socket for wildcard listening (Address family not supported by protocol): will use IPv4
2006-11-06 02:36:57 exim 4.63 daemon started: pid=13135, -q30m, listening for SMTP on port 25 (IPv4)
2006-11-06 02:36:57 Start queue run: pid=13141
2006-11-06 02:36:57 End queue run: pid=13141
2006-11-06 03:06:57 Start queue run: pid=13922
2006-11-06 03:06:57 End queue run: pid=13922
2006-11-06 03:36:57 Start queue run: pid=14584
2006-11-06 03:36:57 End queue run: pid=14584
> > root at onegee:~# su "-c cp /etc/exim4/exim4.conf.template
> > /var/run/exim4" Debian-exim root at onegee:~# ls -al /var/run/exim4
> > total 5
> > drwxr-x--- 2 Debian-exim Debian-exim 72 Nov 6 02:36 .
> > drwxr-xr-x 22 root root 1048 Nov 5 21:31 ..
> > -rw-r--r-- 1 root Debian-exim 6 Nov 6 02:36 exim.pid
>
> You cannot su to Debian-exim since Debian-exim has /bin/false as
> shell. Try adding -s /bin/bash to the su call and move the -c out of
> the quotes.
[-s] duh :-/, thanks
root at onegee:~# su -s /bin/bash -c "cp /etc/exim4/exim4.conf.template /var/run/exim4" Debian-exim
root at onegee:~# ls -al /var/run/exim4
total 73
drwxr-x--- 2 Debian-exim Debian-exim 88 Nov 6 03:43 .
drwxr-xr-x 22 root root 1048 Nov 5 21:31 ..
-rw-r--r-- 1 Debian-exim Debian-exim 73147 Nov 6 03:43 exim4.conf.template
- Bruce
More information about the Pkg-exim4-maintainers
mailing list