On Thu, 30 Dec 2004, Rainer Sokoll wrote:
On Wed, Dec 29, 2004 at 05:52:45PM -0800, David Newman wrote:
2. Same question as (1) for startup -- what modifications are needed to /usr/local/etc/rc.d/sa-spamd.sh to launch SA as non-root user on startup?
The answer is here in your question:
/usr/bin/spamd --daemonize --username sa-run \^^^^^^^^^^--pidfile /var/run/spamd.pid
;-))
Sorry for being dense, but modifying the sa-spamd.sh file this way doesn't work. I added the all the arguments above to the "command" line in the script, but the system ignores the arguments.
Again, I want to have the system launch SA as user sa-run on bootup.
Would this work if I added these two lines to rc.conf:
spamd_enable="YES" spamd_flags="--daemonize --username sa-run --pidfile /var/run/spamd.pid"
thanks
dn