From: Sasa Stupar [mailto:[EMAIL PROTECTED] > At 09:02 5.10.2004 -0400, you wrote: > >Sasa Stupar wrote: > >>I don't know how to start clamd before sendmail and also do I > >>have to start it or do I need to start only clamav-milter as > >>daemon. > > > >It's been a l-o-n-g time since I messed with Linux, and I know > >nothing about SYSV-style startups. I have always used rc.local for > >packages that I have installed. Here is how I'm starting things on > >my FreeBSD box(some lines are wrapped)... > > > >/usr/local/sbin/clamd > > > >/usr/local/bin/spamd -d -L -x -m 10 -u spamd -r > >/var/run/spamd/spamd.pid > > > >/usr/local/sbin/clamav-milter -l > >--pidfile=/var/run/clamav/clmilter.pid > > /var/run/clamav/clmilter.sock > > > >/usr/local/sbin/spamass-milter -p > >/var/run/spamd/spamass-milter.sock -f > > -r 20& > > > >/usr/sbin/sendmail -L sm-mta -bd -q15m > > > >/usr/local/bin/freshclam -d > > Thank you for the answer. This is the way that I am starting it > now but in the docs it is specified to start milter and clamd > before sendmail and rc.local is started at the end. Anyone with > the knowledge of sysv style startup (redhat)?
I don't use this setup, so I can't say what needs to be started, but I can tell you how to do it in redhat. All of your startup scripts should be placed in /etc/rc.d/init.d. Links to those scripts go in /etc/rc#.d (where # is the desired runlevel). Links are named S##scripname, or K##scriptname (## is a 2-digit number). Scripts starting with S are started in this runlevel. Scripts starting with K are stopped in this runlevel. The scripts are started (or stopped) in alphanumeric order (thus the number embedded in the filename). You can also use chkconfig to manage the links for you. Check out the manpage for instructions. Bowie _______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users