On Jun 23, 2005, at 08:33 PM, Tomasz Kojm wrote:
On Thu, 23 Jun 2005 20:13:29 -0400
Dale Walsh <[EMAIL PROTECTED]> wrote:
I don't think you're following me here.
No, it's you not following me.
launchd works with user environments, clamav is the user, his
environment is established in a plist file, a user cannot have more
than one environment plist file, yes I can combine clamav config
files into one file that both apps use but I cannot specify different
I was not talking about combining config files into one file but using
two different config files: one with Foreground enabled (say
freshclam-
fg.conf) and a second one with this option disabled (freshclam-
bg.conf).
Then, with respect to your 'patch', the following holds:
freshclam -D <=> freshclam -d --config-file=/path/to/freshclam-fg.conf
freshclam -d <=> freshclam -d --config-file=/path/to/freshclam-bg.conf
I cannot specify a "-d" as a program argument because clamd chokes on
it.
mustangrestomods:/ root# clamd -d
clamd: invalid option -- d
ERROR: Unknown option passed.
mustangrestomods:/ root#
There's no such option and there won't be. Clamd is (in contrast to
freshclam) a native daemon.
OK I'm not denying this, however, in the environment, you list
programs and program arguments in two separate lists.
for arguments you list:
<string>--foreground</string>
<string>-c</string>
<string>/etc/clamav.conf</string>
for programs you list:
<string>freshclam</string>
<string>clamd</string>
Now each program must be able to accept all of the program arguments,
their is no selective process.
Now clamd wont run because it doesn't accept the "--foreground"
argument and no, you cannot specify separate program arguments for
each program in a user environment, all programs get all arguments
you specify.
launchd must first run the program in the foreground, it must live
for 5 seconds minimum (it kills it after 10) before releasing the
program to run on it's own.
What ever arguments are specified for the user environment must be
useable by the apps specified for the environment, in this case,
freshclam and clamd.
Amazing! ;-)
--
oo ..... Tomasz Kojm <[EMAIL PROTECTED]>
(\/)\......... http://www.ClamAV.net/gpg/tkojm.gpg
\..........._ 0DCA5A08407D5288279DB43454822DC8985A444B
//\ /\ Fri Jun 24 02:17:06 CEST 2005
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html