HOW TO: create a startup item easily for OS X Tiger

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

HOW TO: create a startup item easily for OS X Tiger

Postby IT2Be » Fri Aug 25, 2006 10:27 am

When the above is of interest to you it is most likely that you already read the following article I wrote for Servoy Magazine http://www.servoymagazine.com/home/2004/11/article_how_to_.html. However, that is pretty complicated... Some succeeded and some failed using the tip.

Since Tiger the creation of startup items changed and should be more simple. I explicitely use the word should since it is yet another thing to learn :? . However, there is light in the darkness...

Because the logicboard of my server said goodbye to me 2 weeks ago I decided to use this mishap to rearrange my server and make sure all services (sorry for the word you OS X nerds :) ) work correct.

A few months ago I had run into an application that could help me to create startup items and BINGO. Creating a startup item with this tool for OS X Tiger is really easy... The name of the app is Lingon, it is a sourceforge project by Peter Borg and you can get it at http://lingon.sourceforge.net/. Go get it and try it. It is really great... I created a startup item for Servoy Server within 2 minutes :D

Hope you can benefit from this tip
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby swingman » Fri Aug 25, 2006 11:22 am

Great tip, Marcel!
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: HOW TO: create a startup item easily for OS X Tiger

Postby Riccardino » Fri Aug 25, 2006 3:19 pm

IT2Be wrote:A few months ago I had run into an application that could help me to create startup items and BINGO. Creating a startup item with this tool for OS X Tiger is really easy... The name of the app is Lingon, it is a sourceforge project by Peter Borg and you can get it at http://lingon.sourceforge.net/. Go get it and try it. It is really great... I created a startup item for Servoy Server within 2 minutes :D

Hope you can benefit from this tip


If it's as good as Peter Borg's other product (Smultron, my favourite text editor), I'm sure it is an excellent software.

Thanks for the tip, Marcel
ciao, ric
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby swingman » Tue Sep 26, 2006 2:32 pm

Any more details? We have tried Smultron, but can't get Servoy 3.0 to start
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Postby swingman » Tue Sep 26, 2006 5:10 pm

Had a problem with the servoy_server.sh file, fixed now.
The lingon bit worked fine.

Sorry got it mixed up with Smultron -- it is all Swedish to me!
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1472
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Postby Gordon » Thu Sep 28, 2006 4:11 pm

swingman wrote:Great tip, Marcel!


Did you manage to get this to start with Sybase as the repository ? In my attempts unless developer is started first OR you can get Sybase to start first, then delay a bit the process fails !

If there is any chance you could post your process it would be super helpful for those of us with less technical expertise !!

Cheers
Gordon
Gordon McLean
Click Digital Media Ltd
SAN Developer
www.clickdigital.com
User avatar
Gordon
 
Posts: 265
Joined: Thu Mar 17, 2005 8:05 pm
Location: UK

Re: HOW TO: create a startup item easily for OS X Tiger

Postby netweaver » Sat Jul 28, 2007 11:11 pm

Hi Marcel
I have tried to impliment your sugesstions to start the server on mac, however i still only get the database starting and not the server.
Can you give me any other things to do or check out?
Thanks
Marcus

IT2Be wrote:When the above is of interest to you it is most likely that you already read the following article I wrote for Servoy Magazine http://www.servoymagazine.com/home/2004/11/article_how_to_.html. However, that is pretty complicated... Some succeeded and some failed using the tip.

Since Tiger the creation of startup items changed and should be more simple. I explicitely use the word should since it is yet another thing to learn :? . However, there is light in the darkness...

Because the logicboard of my server said goodbye to me 2 weeks ago I decided to use this mishap to rearrange my server and make sure all services (sorry for the word you OS X nerds :) ) work correct.

A few months ago I had run into an application that could help me to create startup items and BINGO. Creating a startup item with this tool for OS X Tiger is really easy... The name of the app is Lingon, it is a sourceforge project by Peter Borg and you can get it at http://lingon.sourceforge.net/. Go get it and try it. It is really great... I created a startup item for Servoy Server within 2 minutes :D

Hope you can benefit from this tip
netweaver
 
Posts: 63
Joined: Sat Jan 06, 2007 11:58 pm
Location: South Africa

Postby IT2Be » Mon Jul 30, 2007 9:58 am

Nope, it is a year ago and I use another server now.
Maybe somebody else?
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby Jan Aleman » Mon Jul 30, 2007 11:37 am

It's quite easy. Use launchdaemon, there are some GUI tools for that or you can do it by command line like I like to do.

Create this file in /Library/LaunchAgents

Code: Select all
<?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>servoyserver</string>
        <key>OnDemand</key>
        <false/>
        <key>ProgramArguments</key>
        <array>
                <string>/Applications/Servoy/servoy_server.sh</string>
        </array>
</dict>
</plist>


If you use iAnywhere make sure to start it in servoy_server.sh too by adding this to the top:

Code: Select all
cd /Applications/Servoy; export DYLD_LIBRARY_PATH=/Applications/Servoy/sybase_db; /Applications/Servoy/sybase_db/dbsrv9 @/Applications/Servoy/sybase_db/sybase.config&


Adjust the 9 above if you are using 10

Then install the agent by typing:

launchctl load servoy.plist

adjust name of servoy.plist depending on how you called the file created in step 1 and if necessary add path to it.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Launchagent

Postby netweaver » Mon Jul 30, 2007 5:44 pm

Hi Jan
I tried your way and get the following messages in terminal:
launchctl: propertyList is NULL
launchctl: no plist was returned for: servoy.plist
launchctl: no plist was returned for: servoy.plist
nothing found to load

Thanks for assistance
Regards
Marcus

jaleman wrote:It's quite easy. Use launchdaemon, there are some GUI tools for that or you can do it by command line like I like to do.

Create this file in /Library/LaunchAgents

Code: Select all
<?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>servoyserver</string>
        <key>OnDemand</key>
        <false/>
        <key>ProgramArguments</key>
        <array>
                <string>/Applications/Servoy/servoy_server.sh</string>
        </array>
</dict>
</plist>


If you use iAnywhere make sure to start it in servoy_server.sh too by adding this to the top:

Code: Select all
cd /Applications/Servoy; export DYLD_LIBRARY_PATH=/Applications/Servoy/sybase_db; /Applications/Servoy/sybase_db/dbsrv9 @/Applications/Servoy/sybase_db/sybase.config&


Adjust the 9 above if you are using 10

Then install the agent by typing:

launchctl load servoy.plist

adjust name of servoy.plist depending on how you called the file created in step 1 and if necessary add path to it.
netweaver
 
Posts: 63
Joined: Sat Jan 06, 2007 11:58 pm
Location: South Africa

Postby Jan Aleman » Mon Jul 30, 2007 5:47 pm

Where did you create the file?
What subdir are you in when you type the command?
what command do you exactly type?
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby netweaver » Mon Jul 30, 2007 5:58 pm

I created the file in /Library/LaunchAgents
I typed the commend in the same directory
I cut and paste the command you gave: launchctl load servoy.plist


jaleman wrote:Where did you create the file?
What subdir are you in when you type the command?
what command do you exactly type?
netweaver
 
Posts: 63
Joined: Sat Jan 06, 2007 11:58 pm
Location: South Africa

Postby Jan Aleman » Mon Jul 30, 2007 6:47 pm

Sounds like you have made a typo in the file then. Eg if you forget to close one of the xml tags you would expect that output. I've tried it by pasting my example above on my local mac and it works perfect.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby netweaver » Mon Jul 30, 2007 6:58 pm

Hi Jan

Will check for typos.

I installed 3.5 yesterday and tried to get the server to start witht he guidlines of this thred. This did not work.
I then uninstalled this and installed 3.1.6 and running servoy_server.sh from the terminal now works fine.
Did something change in 3.5 requiring a different setup?

On another note i have not been able to setup a service on windows as well.I followed the server docs guidlines and cannot get it working.
Do you have any recommedations on this?

Thanks

jaleman wrote:Sounds like you have made a typo in the file then. Eg if you forget to close one of the xml tags you would expect that output. I've tried it by pasting my example above on my local mac and it works perfect.
netweaver
 
Posts: 63
Joined: Sat Jan 06, 2007 11:58 pm
Location: South Africa

Postby Jan Aleman » Mon Jul 30, 2007 7:42 pm

The only difference between 3.1 and 3.5 is the database. Make sure to have a 3.5 final or you might be mixing an ASA 9 and 10 engine. The instructions I have posted in this thread work guaranteed with 3.1 and 3.5 on any proper Mac with 10.4 or higher.

For your windows service problems the same applies: WHAT exactly do you do? What errors do you get? What windows? What Java etc? Please note that we test Servoy extensively before we put a version out on all different types of systems and it really helps if you are detailed if a problem occurrs so we can help you to fix it!
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Next

Return to How To

Who is online

Users browsing this forum: No registered users and 10 guests

cron