[Richard Heck]
> the suggestion was that sb_server.py should handle these things  
> itself (as most system daemons do), that is, lower its own  
> privileges if it discovers that it is running as root

I'm -1 on this, personally.  IMO it's up to whoever runs sb_server.py  
(or any of the other SpamBayes scripts) to decide what user should  
run it.  What if a user wants to run it as root?  What do we do on  
Windows?

> and then daemonize itself by forking and dissociating itself from  
> the originating process.

It sounds like what you actually want is a sb_daemon.py script that  
lowers privileges and launches sb_server.py (something like the  
pop3proxy_tray.py and pop3proxy_service.py scripts for Windows).  Not  
everyone wants sb_server to run as a daemon.

=Tony.Meyer
_______________________________________________
spambayes-dev mailing list
spambayes-dev@python.org
http://mail.python.org/mailman/listinfo/spambayes-dev

Reply via email to