At 11:58 PM +1000 6/2/09, James Brown wrote:
>On 02/06/2009, at 10:26 PM, Tom Shaw wrote:
>
>>  At 5:53 PM +1000 6/2/09, James Brown wrote:
>>>  Running on Mac OS X 10.5.7 I've set up a launchd process to start 
>>>  ASSP
>>>  when the server boots.
>>>
>>>  Unfortunately is seems to kill ASSP before it has a chance to load:
>>>
>>>  ...
>>>  2/06/09 5:37:49 PM ASSP[58] loading configuration     [OK]
>>>  2/06/09 5:37:49 PM ASSP[58] defining environment     [OK]
>>>  2/06/09 5:37:49 PM ASSP[58] loading modules      [OK]
>>>  2/06/09 5:37:49 PM ASSP[58] loading database drivers    [OK]
>>>  2/06/09 5:37:49 PM ASSP[58] compiling regular expressions    [OK]
>>>  2/06/09 5:37:49 PM ASSP[58] loading plugins      [OK]
>>>  2/06/09 5:37:49 PM ASSP[58] fixing up config     [OK]
>>>  2/06/09 5:37:49 PM ASSP[58] rendering HTML for GUI     [OK]
>>>  2/06/09 5:37:49 PM ASSP[58] setting up signal handler   [OK]
>>>  2/06/09 5:37:49 PM ASSP[58] starting as daemon
>>>  2/06/09 5:37:49 PM com.apple.launchd[1] (ASSP[58]) Stray process with
>>>  PGID equal to this dead job: PID 303 PPID 1 perl
>>>
>>>  My .plist file is:
>>>
>>>  <?xml version="1.0" encoding="UTF-8"?>
>>>  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
>>>  "http://www.apple.com/DTDs/PropertyList-1.0.dtd
>>>  ">
>>>  <plist version="1.0">
>>>  <dict>
>>>     <key>Label</key>
>>>     <string>ASSP</string>
>>>     <key>ProgramArguments</key>
>>>     <array>
>>>             <string>/usr/bin/perl</string>
>>>             <string>/Applications/assp/assp.pl</string>
>>>             <string>/Applications/assp</string>
>>>     </array>
>>>     <key>RunAtLoad</key>
>>>     <true/>
>>>  </dict>
>>>  </plist>
>>>
>>>  Running ASSP 2.0.1 (RC 0.1.15)
>>>
>>>  Any suggestions?
>>
>>  Jim
>>
>>  I run 1.5.1.3 on OSX 10.5.7
>>
>>  1) create a user/group _assp
>>  2) do not select "run as a daemon"
>>  3) Set run as _assp for user and group
>>  4) Do not set any auto restart options (the launchd plist below will
>>  handle it all)
>>  5) use plist below (assumes that you are running stck perl)
>>
>>  <?xml version="1.0" encoding="UTF-8"?>
>>  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
>>  "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
>>  <plist version="1.0">
>>  <dict>
>>      <key>KeepAlive</key>
>>      <true/>
>>      <key>RunAtLoad</key>
>>      <true/>
>>      <key>UserName</key>
>>      <string>root</string>
>>      <key>GroupName</key>
>>      <string>_assp</string>
>>      <key>Label</key>
>>      <string>com.oitc.assp</string>
>>      <key>ProgramArguments</key>
>>      <array>
>>              <string>/usr/bin/perl</string>
>>              <string>/Applications/ASSP/assp.pl</string>
>>      </array>
>>  </dict>
>>  </plist>
>>
>Thanks Tom.
>
>Turning off Start as daemon seems to have done the trick. I'll set up
>the _assp user as you suggest.

Sincee you have been running as root you might need to change support 
files to allow access by _assp

I also have log rollers and integration of assp logs into OSX logging 
system/area as well as clamav installer

Tom
-- 
Tom Shaw - Chief Engineer, OITC
<tshaw at oitc.com>, http://www.oitc.com/ local wx: http://www.oitc.com/weather
US Phone Numbers: 321-984-3714, 321-729-6258(fax), 
321-258-2475(cell/voice mail,pager)
Text Paging: http://www.oitc.com/Pager/sendmessage.html
AIM/iChat: [email protected]

Fish more and Live longer

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to