On Sat, 2004-04-24 at 16:57, Nigel Horne wrote: > On Saturday 24 April 2004 9:28 pm, Don Levey wrote: > > > Well, I may be making progress. > > Based upon someone's suggestion, I had been keeping the clamav-milter > > execution script in /etc/rc.d/init.d/. I copied it to /usr/sbin, with a > > link to it in /usr/local/sbin. I made sure the permissions were the > > same as the test of the files there (755). Now, when I try to execute > > it, I get the following: > > > > [EMAIL PROTECTED] log]# clamav-milter start > > Starting clamav-milter: Usage: /usr/sbin/clamav-milter > > {start|stop|reload|restart|condrestart|status} > > [FAILED] > > Why are you putting an init startup script in /usr/local/sbin? init scripts > live in /etc/rc.d or /etc/init.d depending on your OS, certainly not in a > sbin directory! > > Leave the clamav-milter executable in /usr/local/sbin and the startup > script in /etc/rc.d/init.d. Two programs for two jobs and never the > twain shall meet...
I've got two files names "clamav-milter". One is in /etc/sysconfig, and contains what looks like command-line flags for startup. My guess was that this was a config file. The second is an executable script. I can't even remember where it was originally; probably in the build directory and no-where else. Yes, I did run make in the milter subdirectory when I downloaded the code, as well as make install. I copied *this* script into /etc/rc.d/init.d, and then into /usr/sbin and /usr/local/sbin. For reference, it starts: !/bin/sh # # clamav-milter This script starts and stops the clamav-milter daemon # # chkconfig: 2345 91 30 # # description: clamav-milter is a daemon which hooks into sendmail and routes # email messages to clamav # processname: clamav-milter # Source function library. . /etc/rc.d/init.d/functions Since those are the only files directly named 'clamav-milter", which one is the executable and which one the startup script? -Don ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users