opendkim - initscript not returning statuscode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
opendkim (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
problem occurs on Ubuntu Ubuntu 14.04.5 LTS
InitScript /etc/init.
let me show the U14 problem:
# /etc/init.
# /etc/init.
* opendkim is notttt running
# echo $?
0
U16 looks like this:
# /etc/init.
# /etc/init.
● opendkim.service - DomainKeys Identified Mail (DKIM) Milter
Loaded: loaded (/lib/systemd/
Active: inactive (dead) since Mi 2018-01-10 11:57:21 CET; 3s ago
Docs: man:opendkim(8)
http://
Process: 19456 ExecStart=
Process: 19452 ExecStartPre=
Process: 19448 ExecStartPre=
Main PID: 19458 (code=exited, status=0/SUCCESS)
Jan 10 11:28:21 myserver systemd[1]: Starting DomainKeys Identified Mail (DKIM) Milter...
Jan 10 11:28:21 myserver systemd[1]: Started DomainKeys Identified Mail (DKIM) Milter.
Jan 10 11:57:18 myserver systemd[1]: Stopping DomainKeys Identified Mail (DKIM) Milter...
Jan 10 11:57:21 myserver systemd[1]: Stopped DomainKeys Identified Mail (DKIM) Milter.
# echo $?
3
difference is initscript in line 126, the end of the status() function.
retun of statuscode is not cached, so this line should be "exit $status" in place of "return $status"
This has been fixed in opendkim version 2.10.1-2 (Ubuntu 16.04).