Results 1 to 2 of 2

Thread: LaunchAgents

  1. #1

    Member Since
    Dec 13, 2010
    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:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
    <plist version="1.0">
    and my script is:

    cd /path/to/jar
    java -jar program.jar
    When i logged out and then logged in, if i try to launchctl this plist file, the command line told me that it is "Already loaded", but if i run "ps - ef | grep java", no java program is running.

    Any suggestions?

    Thanks in advance

  2. #2

    Member Since
    Dec 13, 2010
    solved putting in LaunchDaemons

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts