Bug#718871: exim4: /etc/init.d/exim4 status gives "invalid argument" errors
Frederik Himpe
fhimpe at vub.ac.be
Tue Aug 6 12:08:51 UTC 2013
Package: exim4
Version: 4.80-7
Severity: normal
# /etc/init.d/exim4 status
[....] checking separate queue runner daemon.../etc/init.d/exim4: invalid arguments
done (not running).
[....] checking combined SMTP listener and queue runner daemon.../etc/init.d/exim4: invalid arguments
failed (combined SMTP listener and queue runner daemon failed).
I found the same problem described here: https://lists.debian.org/debian-user/2012/11/msg00871.html
This error seems to come from te pidofproc call in the init script:
# bash -x /etc/init.d/exim4 status
+ set -e
+ test -x /usr/lib/exim4/exim4
+ . /lib/lsb/init-functions
+++ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)'
++ '[' -r /lib/lsb/init-functions.d/20-left-info-blocks ']'
++ . /lib/lsb/init-functions.d/20-left-info-blocks
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ '[' -n '' ']'
+ LANG=C
+ export LANG
+ 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 ']'
+ DAEMON=/usr/sbin/exim4
+ NAME=exim4
+ case "$1" in
+ status
+ SMTPNAME='SMTP listener daemon'
+ QRNAME='separate queue runner daemon'
+ '[' combined = combined ']'
+ SMTPNAME='combined SMTP listener and queue runner daemon'
+ log_action_begin_msg 'checking separate queue runner daemon'
+ log_action_begin_msg_pre 'checking separate queue runner daemon'
+ log_daemon_msg_pre 'checking separate queue runner daemon'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xxterm '!=' x ']'
+ '[' xxterm '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z ']'
+ FANCYTTY=1
+ case "$FANCYTTY" in
+ true
+ echo -n '[....] '
[....] + echo -n 'checking separate queue runner daemon...'
checking separate queue runner daemon...+ log_action_begin_msg_post 'checking separate queue runner daemon'
+ :
+ pidofproc -p /var/run/exim4/eximqr.pid
+ local pidfile base status specified pid OPTIND
+ pidfile=
+ specified=
+ OPTIND=1
+ getopts p: opt
+ case "$opt" in
+ pidfile=/var/run/exim4/eximqr.pid
+ specified=specified
+ getopts p: opt
+ shift 2
+ '[' 0 -ne 1 ']'
+ echo '/etc/init.d/exim4: invalid arguments'
/etc/init.d/exim4: invalid arguments
+ return 4
+ '[' -e /var/run/exim4/eximqr.pid ']'
+ log_action_end_msg 0 'not running'
+ local end
+ log_action_end_msg_pre 0 'not running'
+ log_end_msg_pre 0 'not running'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xxterm '!=' x ']'
+ '[' xxterm '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z 1 ']'
+ true
+ case "$FANCYTTY" in
+ true
++ /usr/bin/tput setaf 1
+ RED=''
++ /usr/bin/tput setaf 2
+ GREEN=''
++ /usr/bin/tput setaf 3
+ YELLOW=''
++ /usr/bin/tput op
+ NORMAL=''
+ /usr/bin/tput civis
+ /usr/bin/tput sc
+ /usr/bin/tput hpa 0
+ '[' 0 -eq 0 ']'
+ /bin/echo -ne '[ ok '
[ ok + /usr/bin/tput rc
+ /usr/bin/tput cnorm
+ '[' -z 'not running' ']'
+ end=' (not running).'
+ '[' 0 -eq 0 ']'
+ echo 'done (not running).'
done (not running).
+ log_action_end_msg_post 0 'not running'
+ :
+ log_action_begin_msg 'checking combined SMTP listener and queue runner daemon'
+ log_action_begin_msg_pre 'checking combined SMTP listener and queue runner daemon'
+ log_daemon_msg_pre 'checking combined SMTP listener and queue runner daemon'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xxterm '!=' x ']'
+ '[' xxterm '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z 1 ']'
+ true
+ case "$FANCYTTY" in
+ true
+ echo -n '[....] '
[....] + echo -n 'checking combined SMTP listener and queue runner daemon...'
checking combined SMTP listener and queue runner daemon...+ log_action_begin_msg_post 'checking combined SMTP listener and queue runner daemon'
+ :
+ pidofproc -p /var/run/exim4/exim.pid
+ local pidfile base status specified pid OPTIND
+ pidfile=
+ specified=
+ OPTIND=1
+ getopts p: opt
+ case "$opt" in
+ pidfile=/var/run/exim4/exim.pid
+ specified=specified
+ getopts p: opt
+ shift 2
+ '[' 0 -ne 1 ']'
+ echo '/etc/init.d/exim4: invalid arguments'
/etc/init.d/exim4: invalid arguments
+ return 4
+ '[' -e /var/run/exim4/exim.pid ']'
+ log_action_end_msg 1 'combined SMTP listener and queue runner daemon failed'
+ local end
+ log_action_end_msg_pre 1 'combined SMTP listener and queue runner daemon failed'
+ log_end_msg_pre 1 'combined SMTP listener and queue runner daemon failed'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xxterm '!=' x ']'
+ '[' xxterm '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z 1 ']'
+ true
+ case "$FANCYTTY" in
+ true
++ /usr/bin/tput setaf 1
+ RED=''
++ /usr/bin/tput setaf 2
+ GREEN=''
++ /usr/bin/tput setaf 3
+ YELLOW=''
++ /usr/bin/tput op
+ NORMAL=''
+ /usr/bin/tput civis
+ /usr/bin/tput sc
+ /usr/bin/tput hpa 0
+ '[' 1 -eq 0 ']'
+ '[' 1 -eq 255 ']'
+ /bin/echo -ne '[FAIL'
[FAIL+ /usr/bin/tput rc
+ /usr/bin/tput cnorm
+ '[' -z 'combined SMTP listener and queue runner daemon failed' ']'
+ end=' (combined SMTP listener and queue runner daemon failed).'
+ '[' 1 -eq 0 ']'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -t 1 ']'
+ '[' xxterm '!=' x ']'
+ '[' xxterm '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ '[' -z 1 ']'
+ true
+ case "$FANCYTTY" in
+ true
++ /usr/bin/tput setaf 1
+ RED=''
++ /usr/bin/tput op
+ NORMAL=''
+ /bin/echo -e 'failed (combined SMTP listener and queue runner daemon failed).'
failed (combined SMTP listener and queue runner daemon failed).
+ log_action_end_msg_post 1 'combined SMTP listener and queue runner daemon failed'
+ :
+ exit 1
-- Package-specific info:
Exim version 4.80 #3 built 02-Jan-2013 18:59:25
Copyright (c) University of Cambridge, 1995 - 2012
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2012
Berkeley DB: Berkeley DB 5.1.29: (October 25, 2011)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages DKIM
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
Configuration file is /var/lib/exim4/config.autogenerated
-- System Information:
Debian Release: jessie/sid
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (300, 'testing'), (200, 'unstable'), (160, 'experimental'), (150, 'stable'), (140, 'proposed-updates'), (100, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.10-rc5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages exim4 depends on:
ii debconf [debconf-2.0] 1.5.50
ii exim4-base 4.80-7
ii exim4-daemon-light 4.80-7
exim4 recommends no packages.
exim4 suggests no packages.
-- debconf information:
* exim4/drec:
More information about the Pkg-exim4-maintainers
mailing list