On 03/06/2014 01:28 PM, Alan Chandler wrote:
> On 06/03/14 11:33, Alan Chandler wrote:
>> On 06/03/14 11:24, Tom Hendrikx wrote:
>>> Could you send me some details on this (off-list, github, new thread
>>> here, whatever you like:)) ? Then I can look into it.
>>> Tom
>>>
>>>
>> I'll start a new thread.
>>
>> Alan
>>
> 
> No need - I figured out the problem.  What happens on the system is that 
> /run (symlinked to from /var/run) is owned by root and has permissions 755
> 
> When run as a non root user it can't write the pid file and then 
> silently exits.
> 
> Can I tell the milter not to create the pid file and let start stop 
> daemon do it instead?
> 

Exiting silently when pidfile creation fails, should not happen (but
that probably why the default is in /tmp right now ;>). It should at
least put something in the logs and have an exit code indicating issues.
I'll look into that.

As far as not creating a pid file: that would be possible.

Proper way would probably be to have a directory (/var/run/dspam-milter
f.i.) owned by the user running the milter, and put the pidfile in
there. The directory would have to be managed by the init script, i.e.
distro-specific.

I created an issue for this:
https://github.com/whyscream/dspam-milter/issues/16

Tom

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to