Bug Tracker item #2947397, was opened at 2010-02-07 15:39
Message generated for change (Tracker Item Submitted) made by valroff
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2947397&group_id=250683

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Julien Valroff (valroff)
Assigned to: Nobody/Anonymous (nobody)
Summary: dspam exits with 0 when not able to bind to configured port

Initial Comment:
Hi,

When starting dspam in daemon mode as an unprivileged user with the default 
port 24, dspam cannot bind to the port, and fails to start, which is normal.
However, the return code is 0, making it not possible to detect dspam hasn't 
started.

Here is an example (here, dspam is a non privileged user).

ds...@sid:/# su dspam
ds...@sid:/$ dspam --daemon
ds...@sid:/$ echo $?
0
ds...@sid:/$ exit
sid:/# ps aux | grep [d]spam
sid:/# tail /var/log/syslog 
Feb  7 16:34:58 sid dspam[1817]: Daemon process starting
Feb  7 16:34:58 sid dspam[1817]: Could not bind to :24: Permission denied
Feb  7 16:34:58 sid dspam[1817]: Daemon mode failed to start
Feb  7 16:34:58 sid dspam[1817]: Daemon process exiting

Cheers,
Julien

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2947397&group_id=250683

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to