Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[10.4] amavisd-new 2.2.1/2.3.0



Well I figured out what was happening with launchd and newer versions of amavisd-new by looking at a diff of the original 2.2.0 (attached below) and Apple's installed 2.2.0.

I made the corresponding changes to the newer versions and voila, it started working and being managed by launchd.

I would have expected that running it as a daemon would have worked but I guess launchd has it's own way of handling things.

It looks like startup items are no longer required and using the launch daemon is starting to look like a nice concept since it boils down to a simple plist file to make it work (attached below) which can be included with custom apps to simplify installation and autostart functionality if the user isn't .

ClamAV may prove to be a little more difficult, I'm still investigating why when I compile it (even the older Apple installed version ), it's size is significantly smaller, otool shows that it's not including libmx.dylib despite any external flags I set so they must be making changes to the source code or doing it through some additional process or extra flags that I haven't figured out yet.

________________________________________________________________________ ____________________

?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http:// www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Enabled</key>
<true/>
<key>Label</key>
<string>org.amavis.amavisd</string>
<key>OnDemand</key>
<false/>
<key>Program</key>
<string>/usr/bin/amavisd</string>
<key>ProgramArguments</key>
<array>
<string>amavisd</string>
</array>
<key>ServiceIPC</key>
<false/>
</dict>
</plist>



--- /Users/websrvr/Desktop/amavisd-new-2.2.0/amavisd 2004-11-02 16:22:57.000000000 -0500
+++ /Users/websrvr/Desktop/amavisd.10.4 2005-05-01 01:44:27.000000000 -0400
@@ -396,7 +396,7 @@
# Cause Net::Server parameters 'background' and 'setsid' to be set,
# resulting in the program to detach itself from the terminal
-$daemonize = 1;
+$daemonize = 0;
# Net::Server pre-forking settings - defaults, overruled by amavisd.conf
$max_servers = 2; # number of pre-forked children
@@ -7820,7 +7820,7 @@
$ENV{HOME} = $helpers_home if $helpers_home ne '';
$ENV{TERM} = 'dumb'; $ENV{COLUMNS} = '80'; $ENV{LINES} = '100';
-Amavis::Log::init("amavis", !$daemonize, $DO_SYSLOG, $SYSLOG_LEVEL, $LOGFILE);
+Amavis::Log::init("amavis", !1, $DO_SYSLOG, $SYSLOG_LEVEL, $LOGFILE);
# report version of Perl and process UID
do_log(1, "user=$desired_user, EUID: $> ($<); group=$desired_group, EGID: $) ($()");


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.