>Synopsis: smtpd exits right after starting the daemon
>Category: armv7
>Environment:
System : OpenBSD 5.4
Details : OpenBSD 5.4-current (GENERIC-OMAP) #0: Thu Oct 31
21:40:54 CET 2013
[email protected]:/usr/src/sys/arch/armv7/compile/GENERIC-OMAP
Architecture: OpenBSD.armv7
Machine : armv7
>Description:
Without the -d "do not daemonize" option smtpd exits after
starting.
My /etc/mail/smtpd.conf:
# $OpenBSD: smtpd.conf,v 1.6 2013/01/26 09:38:25 gilles Exp $
# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.
# To accept external mail, replace with: listen on all
#
listen on lo0
table aliases db:/etc/mail/aliases.db
# Uncomment the following to accept external mail for domain "example.org"
#
# accept from any for domain "example.org" alias <aliases> deliver to mbox
accept for local alias <aliases> deliver to mbox
accept for any relay
>From the /var/log/maillog:
Nov 1 20:41:02 panda smtpd[14296]: info: OpenSMTPD 5.4 starting
Nov 1 20:41:02 panda smtpd[3583]: info: startup [debug mode]
Nov 1 20:41:02 panda smtpd[3583]: warn: lost child: smtp terminated;
signal 11
Nov 1 20:41:02 panda smtpd[3583]: warn: lost child: scheduler
terminated; signal 11
Nov 1 20:41:02 panda smtpd[3583]: warn: lost child: filter terminated;
signal 11
Nov 1 20:41:02 panda smtpd[3583]: warn: lost child: delivery
terminated; signal 11
Nov 1 20:41:02 panda smtpd[3583]: warn: lost child: lookup terminated;
signal 11
Nov 1 20:41:02 panda smtpd[3583]: warn: lost child: queue terminated;
signal 11
Nov 1 20:41:02 panda smtpd[31469]: info: control process exiting
Nov 1 20:41:02 panda smtpd[3583]: warn: parent terminating
If I start it with the "do not daemonize" option it runs:
sudo smtpd -dv
info: OpenSMTPD 5.4 starting
debug: bounce warning after 4h
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
info: startup [debug mode]
debug: init server-ssl tree
debug: init client-ssl tree
debug: parent_send_config_ruleset: reloading
mfa: building simple chains...
mfa: building complex chains...
mfa: done building complex chains
mfa: done building default chain
debug: parent_send_config_mfa: reloading
debug: parent_send_config: configuring smtp
debug: smtp: listen on 127.0.0.1 port 25 flags 0x0 cert ""
debug: smtp: listen on IPv6:fe80::1%lo0 port 25 flags 0x0 cert ""
debug: smtp: listen on IPv6:::1 port 25 flags 0x0 cert ""
debug: smtp: will accept at most 501 clients
debug: mfa ready
debug: queue: done loading queue into scheduler
debug: smtpd: scanning offline queue...
debug: smtpd: offline scanning done
I tested this with the last three snapshots on my pandaboard es and at
the moment I run current which I fetched right after bluhm@ 64 bit route
commit yesterday. All snapshots produced the same result. But I remember
once it first started, but after a reboot I had the same problem.
I don't have this problem on my amd64 machine.
>How-To-Repeat:
Try to run smtpd from rc.conf.local on a pandaboard.
>Fix:
dmesg:
OpenBSD 5.4-current (GENERIC-OMAP) #0: Thu Oct 31 21:40:54 CET 2013
[email protected]:/usr/src/sys/arch/armv7/compile/GENERIC-OMAP
real mem = 1073741824 (1024MB)
avail mem = 1045258240 (996MB)
mainbus0 at root
cortex0 at mainbus0
ampintc0 at cortex0 nirq 160
amptimer0 at cortex0: tick rate 396000 KHz
cpu0 at mainbus0: ARM Cortex A9 R2 rev 10 (ARMv7 core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(32b/l,4way) I-cache, 32KB(32b/l,4way) wr-back D-cache
omap0 at mainbus0: PandaBoard
omapid0 at omap0: omap4460
amptimer0: adjusting clock: new tick rate 350000 KHz
prcm0 at omap0 rev 0.0
omdog0 at omap0 rev 0.1
omgpio0 at omap0 omap4 rev 0.1
omgpio1 at omap0 omap4 rev 0.1
omgpio2 at omap0 omap4 rev 0.1
omgpio3 at omap0 omap4 rev 0.1
omgpio4 at omap0 omap4 rev 0.1
omgpio5 at omap0 omap4 rev 0.1
ommmc0 at omap0
sdmmc0 at ommmc0
com0 at omap0: ti16750, 64 byte fifo
com0: console
ehci0 at omap0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "TI OMAP EHCI root hub" rev 2.00/1.00 addr 1
/dev/ksyms: Symbol table not valid.
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, Drive #01, > SCSI2 0/direct fixed
sd0: 30436MB, 512 bytes/sector, 62333952 sectors
uhub1 at uhub0 port 1 "vendor 0x0424 product 0x9514" rev 2.00/2.00 addr 2
smsc0 at uhub1 port 1 "vendor 0x0424 product 0xec00" rev 2.00/2.00 addr 3
smsc0: address ff:ff:ff:ff:ff:ff
ukphy0 at smsc0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x0001f0, model 0x000c
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
boot device: sd0
root on sd0a (283504892e41646b.a) swap on sd0b dump on sd0b
WARNING: CHECK AND RESET THE DATE!
usbdevs:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), TI
OMAP(0x0000), rev 1.00
port 1 addr 2: high speed, self powered, config 1, product
0x9514(0x9514), vendor 0x0424(0x0424), rev 2.00
port 1 addr 3: high speed, self powered, config 1, product
0xec00(0xec00), vendor 0x0424(0x0424), rev 2.00
port 2 powered
port 3 powered
port 4 powered
port 5 powered
port 2 powered
port 3 powered
sh: pcidump: not found
sh: acpidump: not found
b64encode: *: No such file or directory
pcidump:
acpidump: