Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

launchd?

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


jeff.maxwell at deltatsystems

Nov 2, 2009, 11:35 AM

Post #1 of 6 (341 views)
Permalink
launchd?

Is anyone running interchange on OS X Server? I am using 10.4.11
server and can't seem to get the new launchd to start my daemon when
the system restarts.

I can start it manually, but when I start it with a script, the daemon
starts, but the catalogs won't run.

Best Regards,

Jeff Maxwell
IT Administrator

Delta "T" Systems, Inc.
858 West 13th Court
Riviera Beach, FL 33404 USA
Phone: 561-848-1505
Fax: 561-848-1611

Office Hours: Monday - Thursday 7:00 AM to 5:30 PM Eastern

Visit Us On The Web At: www.deltatsystems.com


_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


david at endpoint

Nov 2, 2009, 12:44 PM

Post #2 of 6 (322 views)
Permalink
Re: launchd? [In reply to]

Jeff,

> Is anyone running interchange on OS X Server? I am using 10.4.11
> server and can't seem to get the new launchd to start my daemon when
> the system restarts.
>
> I can start it manually, but when I start it with a script, the
> daemon starts, but the catalogs won't run.


Do you get any sort of error message with this? And are you running
this as a system-level launchd job, or under a specific user? Can you
provide your plist for the startup? In particular, I'm wondering if
something in your environment is not yet set up when starting up at
boot time.

Regards,

David
--
David Christensen
End Point Corporation
david[at]endpoint.com





_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


jeff.maxwell at deltatsystems

Nov 2, 2009, 12:59 PM

Post #3 of 6 (323 views)
Permalink
Re: launchd? [In reply to]

David,

I'm running it as a LaunchAgent. I have the plist in "/Library/
LaunchAgents/"

I can start it with "launchctl load /Library/LaunchAgents/
com.icdevgroup.interchange.plist" It starts without any errors but
when I restart it doesn't start.

This is the output when I start it:
xserve-g4:~ interch$ launchctl load /Library/LaunchAgents/
com.icdevgroup.interchange.plist
xserve-g4:~ interch$ The Interchange server was not running (/Users/
interch/interchange/etc/interchange.pid).
Vend::Payment::TestPayment payment module loaded
Low traffic settings.
Calling UI......UI is loaded...
Interchange V5.7.3
Running with old signals.
Configuring catalog DTD...Using MySQL, DSN=dbi:mysql:test_DTD...done.
Configuring catalog test...Using MySQL, DSN=dbi:mysql:test_test...done.
Interchange server started in UNIX mode(s) (process id 369)

This is my plist:
<?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>Label</key>
<string>com.icdevgroup.interchange</string>
<key>ProgramArguments</key>
<array>
<string>/Users/interch/interchange/bin/interchange</
<string>-r</string>
</array>
<key>OnDemand</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>interch</string>
</dict>
</plist>



Best Regards,

Jeff Maxwell
IT Administrator

Delta "T" Systems, Inc.
858 West 13th Court
Riviera Beach, FL 33404 USA
Phone: 561-848-1505
Fax: 561-848-1611

Office Hours: Monday - Thursday 7:00 AM to 5:30 PM Eastern

Visit Us On The Web At: www.deltatsystems.com

On Nov 2, 2009, at 3:44 PM, David Christensen wrote:

> Jeff,
>
>> Is anyone running interchange on OS X Server? I am using 10.4.11
>> server and can't seem to get the new launchd to start my daemon
>> when the system restarts.
>>
>> I can start it manually, but when I start it with a script, the
>> daemon starts, but the catalogs won't run.
>
>
> Do you get any sort of error message with this? And are you running
> this as a system-level launchd job, or under a specific user? Can
> you provide your plist for the startup? In particular, I'm
> wondering if something in your environment is not yet set up when
> starting up at boot time.
>
> Regards,
>
> David
> --
> David Christensen
> End Point Corporation
> david[at]endpoint.com
>
>
>
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users[at]icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email______________________________________________________________________


_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


david at endpoint

Nov 2, 2009, 1:16 PM

Post #4 of 6 (322 views)
Permalink
Re: launchd? [In reply to]

Jeff wrote:

>>> Is anyone running interchange on OS X Server? I am using 10.4.11
>>> server and can't seem to get the new launchd to start my daemon
>>> when the system restarts.
>>>
>>> I can start it manually, but when I start it with a script, the
>>> daemon starts, but the catalogs won't run.
>>
>>
>> Do you get any sort of error message with this? And are you
>> running this as a system-level launchd job, or under a specific
>> user? Can you provide your plist for the startup? In particular,
>> I'm wondering if something in your environment is not yet set up
>> when starting up at boot time.

> I'm running it as a LaunchAgent. I have the plist in "/Library/
> LaunchAgents/"
>
> I can start it with "launchctl load /Library/LaunchAgents/
> com.icdevgroup.interchange.plist" It starts without any errors but
> when I restart it doesn't start.
>
> This is the output when I start it:
> xserve-g4:~ interch$ launchctl load /Library/LaunchAgents/
> com.icdevgroup.interchange.plist
> xserve-g4:~ interch$ The Interchange server was not running (/Users/
> interch/interchange/etc/interchange.pid).
> Vend::Payment::TestPayment payment module loaded
> Low traffic settings.
> Calling UI......UI is loaded...
> Interchange V5.7.3
> Running with old signals.
> Configuring catalog DTD...Using MySQL, DSN=dbi:mysql:test_DTD...done.
> Configuring catalog test...Using MySQL,
> DSN=dbi:mysql:test_test...done.
> Interchange server started in UNIX mode(s) (process id 369)

Has the mysql daemon started at this point in the system startup
procedure? IIRC, there's a way to add an explicit service dependency
in your LaunchAgent plist to indicate that you need other services
running. That would definitely lead to catalog loading errors/issues.

> This is my plist:
> <?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>Label</key>
> <string>com.icdevgroup.interchange</string>
> <key>ProgramArguments</key>
> <array>
> <string>/Users/interch/interchange/bin/interchange</
> string>
> <string>-r</string>


The "-r" flag is used to restart the IC daemon, although it should
start afresh with only a warning that the previous instance was not
running. You can add the interch user's ~/bin to your path if you
want to allow easier restart of the IC server (i.e., if this was an
intentional behavior).

> </array>
> <key>OnDemand</key>
> <true/>
> <key>RunAtLoad</key>
> <true/>

I don't know that this will cause issues, but there's no reason to
have it run on demand. Since IC is a daemon, it doesn't make sense to
have launchd doing anything but the initial launch. Also, no port or
other identifier is set to trigger the on-demanded-ness, so I don't
think it'd end up doing anything anyway. :-)

> <key>UserName</key>
> <string>interch</string>
> </dict>
> </plist>
>

Regards,

David
--
David Christensen
End Point Corporation
david[at]endpoint.com





_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


jeff.maxwell at deltatsystems

Nov 2, 2009, 1:36 PM

Post #5 of 6 (322 views)
Permalink
Re: launchd? [In reply to]

David,

I am getting an error, when I restart:
Nov 2 16:30:53 xserve-g4 launchd[381]: com.icdevgroup.interchange:
setgid(502): Operation not permitted
Nov 2 16:30:53 xserve-g4 launchd[374]: com.icdevgroup.interchange:
exited with exit code: 1
Nov 2 16:30:53 xserve-g4 launchd[374]: com.icdevgroup.interchange: 9
more failures without living at least 60 seconds will cause job removal

Best Regards,

Jeff Maxwell
IT Administrator

Delta "T" Systems, Inc.
858 West 13th Court
Riviera Beach, FL 33404 USA
Phone: 561-848-1505
Fax: 561-848-1611

Office Hours: Monday - Thursday 7:00 AM to 5:30 PM Eastern

Visit Us On The Web At: www.deltatsystems.com

On Nov 2, 2009, at 4:16 PM, David Christensen wrote:

snip

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


mike at perusion

Nov 2, 2009, 1:44 PM

Post #6 of 6 (321 views)
Permalink
Re: launchd? [In reply to]

Quoting Jeff Maxwell (jeff.maxwell[at]deltatsystems.com):
> David,
>
> I am getting an error, when I restart:
> Nov 2 16:30:53 xserve-g4 launchd[381]: com.icdevgroup.interchange:
> setgid(502): Operation not permitted
> Nov 2 16:30:53 xserve-g4 launchd[374]: com.icdevgroup.interchange:
> exited with exit code: 1
> Nov 2 16:30:53 xserve-g4 launchd[374]: com.icdevgroup.interchange: 9
> more failures without living at least 60 seconds will cause job removal
>

If you have a SetGroup option in one of your catalogs, try commenting
it out.

--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.328.4479 <mike[at]perusion.com>

Fast, reliable, cheap. Pick two and we'll talk.
-- unknown

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.