| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Dec 13, 2010
Posts: 2
![]() |
Hi all,
i'm trying to make a java application run at boot, calling it from a shell script (i need it, no other way to do this); also i'm on osx server. In ubuntu i've putted my script in /etc/init.d, but here i can't do this. I've read that I can put a plist file in LaunchAgents; doing this the script should start at login. My plist file (com.test.plist) is the following: Code:
<?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>com.test</string> <key>ProgramArguments</key> <array> <string>/Users/user/script.sh</string> </array> </dict> </plist> Code:
cd /path/to/jar java -jar program.jar Any suggestions? Thanks in advance |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
All times are GMT -4. The time now is 01:45 PM.
Powered by vBulletin