Why does a LaunchDaemon stop when user logs out?

Hi,
We have an application that uses an older version of Jetty that I am trying to configure as a LaunchDaemon on OS X 10.7.5
I've created a org.mortbay.jetty.plist and placed this in the /Library/LaunchDaemons, set permission 644 and owner root:wheel. This can be loaded via launchctl and all is happy. I can connect to the server and browse the pages on the server. However, if I log out, the service stops responding and only starts responding when I log in again. It appears to stop jetty and then restart it when I log in.
As this is being run as the root user, I would not have expected a user logout to stop this process. From what I can see there are no per-user overrides for this.
Upgrading Jetty is not currently an option.
Any help/ideas would be appreciated.
Dave
<?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>Disabled</key>
        <false/>
        <key>Label</key>
        <string>org.mortbay.jetty</string>
        <key>ServiceDescription</key>
        <string>Jetty 5</string>
        <key>RunAtLoad</key>
        <true/>
        <key>KeepAlive</key>
        <true/>
        <key>EnvironmentVariables</key>
        <dict>
            <key>JAVA_HOME</key>
            <string>/Library/Java/Home</string>
        </dict>
        <key>WorkingDirectory</key><!-- required! -->
        <string>/usr/local/myApp/Jetty/extra/OSX/</string>
        <key>ProgramArguments</key>
        <array>
            <string>/usr/bin/java</string>
            <string>-Djava.io.tmpdir=/tmp</string>
            <string>-Djetty.port=2000</string>
            <string>-Djetty.home=/usr/local/myApp/Jetty/</string>
            <string>-Djetty.logs=/usr/local/myApp/Jetty/logs/</string>
            <string>-d32</string>
            <string>-jar</string>
            <string>../../start.jar</string>
            <string>/usr/local/myApp/Jetty/jetty.xml</string>
        </array>
        <key>UserName</key>
        <string>root</string>
     <key>StandardErrorPath</key>
     <string>/tmp/launchd_myprogram_stderr.log</string>
     <key>StandardOutPath</key>       
     <string>/tmp/launchd_myprogram_stdout.log</string>
      </dict>
</plist>

Thought I had an answer...but no.
Maybe this reference will help:  Daemons and Services
Message was edited by: g_wolfman

Similar Messages

  • Why does ical go offline when I log out, and ask if I want to go online every time?

    Version 5.0.3, lion 10.7.4, intel 2011
    This is very  annoying and I would like ical to just "recognize" that I am online, so I don't have to do anything with it.
    Anyone know the answer?

    You get tabs opening endlessly if you select the Firefox program to handle a file when you get an "Open with" dialog.
    *https://support.mozilla.org/kb/Firefox+keeps+opening+many+tabs+or+windows
    You can rename (or delete) the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions

  • Why does my system restart with user logged in?

    When I restart my computer, it comes back up with my account logged in.
    I have logged out and restarted, and logged out, shut down and started, but stillt he same.
    Why?
    Can I change it?

    Go to the Apple menu > System Preferences > Users & Groups > Login Options. Make sure Automatic Login is set to Off.

  • Why does my iPhone 4 keep playing music randomly? And why does it keep stopping when I actually want to use it?

    I keep trying to play music and it just randomly stops, and when I don't want to play music it randomly starts playing! Why is this? Is this because of iOS 7? or is it because of the phone itself?

    Try to do a reset. Hold down on the Hold and Home keys for about 10 seconds until the  shows.
    If that doesn't work, you should try to do a restore. A restore re-installs the operating system. Plug your phone in and go to the phone preferences screen in iTunes. There is a restore option. After restore iTunes gives you an option to restore from backup or use as a new phone. I would first try to see if the problem vanishes if you do the restore from backup option. If the problem still exist, you might want to restore again and opt for the use as a new phone. This is because maybe a file in the backup is corrupt and you cannot use the backup. This means all of your saved texts, photos, settings, etc will be gone. You can resync most of the data back if you have them on your computer (not your text messages though). So think twice before restoring as a new phone. Also, there is a risk that restoring won't resolve your issue so think twice. I can tell you that I have everything on my computer and I can get most of the data back even if I restore as a new phone but everyone is different.

  • Why does my recording stop when I navigate away from AA3?

    I noticed recently that when I navigate away from AA3, my recording stops. This is extremely inconvenient. How do I fix it?

    Well, the first thing to do is go to Edit/Audio Hardware Setup and make sure the box beside "Release ASIO Driver in Background" is NOT ticked.
    However, when using ASIO drivers remember that you can't have mutliple pieces of software trying to use the driver at the same time.  This is a restriction of ASIO itself and not an Audition restriction.
    Bob

  • Why does the rendering stop when exporting in Premier 2014?

    I am running Premiere 2014 on Windows 7. I have a fairly simple sequence (without audio) that I'm trying to export in H264. Every time I attempt this, the progress bar stops at the same point and it never completes.
    Any help is greatly appreciated!

    Break it apart and try to find the spot of stall. For example, if you get 3/4 through as your progress bar indicates, in/out or work area the first half and render out, then render out the last half. Or, render out the first half, then the next quarter, then the next eigth.
    Break it apart and try to find the spot in your sequence that causes your rendering to stop,

  • Why does my music stop when the screen dims'

    Why while a song is playing on my iPod nano and the screen starts to dim the song goes off

    Have no clue since you did not mention which model iPod Nano you have!
    Please describe in detail all you have attempted to do in order to resolve the issue.
    iPod Manuals
    iPod Models
    iPod nano Troubleshooting Assistant

  • Why does my music stop when I open the Twitter App?

    Every time i open up the twitter App my music thats playing stops.

    Turn your phone off then back on

  • When user login out un able to login again

    when user log out unable to login again
    geting eror message WHEN-LOGON-CHANGE.
    Edited by: user9530450 on Jan 7, 2009 12:02 AM

    Hi,
    Please check
    SELECT FROM DBA_OBJECTS WHERE STATUS='INVALID';*+
    I hope you must be having some invalid objects
    When-logon-Change error comes you must Complie invalids and than Compile all the pll and bounce the forms server.
    Thanks,
    Anchoarge

  • Why does fcpx suddenly stop reading audio files? ever since i upgraded to Yosemite. Than when I check it on my hard drive it doesn't work as well. Only this file. Am in a trouble of delivering now. Any help?

    why does fcpx suddenly stops reading audio files? ever since i upgraded to Yosemite. Than when I check it on my hard drive it doesn't work as well. Only this file. Am in a trouble of delivering now. Any help?

    Could be systems logs or some other system file growing.
    Use OmniDiskSweeper or DaisyDisk to map what's being used.
    Regards,
    Shawn

  • How can I stop my login screen changing to shrunken dimensions when I log out from my account, it does so randomly!

    Hi,
    Does anybody know how I might fix the followin:
    When I log out of my user account on my macbook the screen display has started to do weird stuff like change size so that the usual log in screen appears small and to the left, not filling the whole screen, then if someone else in the familiy logs in to their user they may have the same problem within their usual screen, with a small area instead of the full screen to work with. THe remaining screen displays blue, without the chosen wall paper etc. It seems to do this randomly so that logging in and out of accounts, shutting down and reopening can get things back to normal, but only until it goes weird again.
    Thank you for any help.
    Billie

    It sounds like a problem wih the backlight inverter. Usually they just go, instead of on and off.
    In a dark room hold a flashlight on the display when it blacks out. If you can see the items on the desktop, it's probably the backlight.

  • Why does my MacBook stop working when I tr to plug in my iPad to do some file syncing?

    Why does my MacBook stop working when I try to plug in my iPad to do some file syncing? This is the second time I have had it happen to my MacBook. The computer just shuts down and cannot be restarted. When I plug it into the charger I get a faint Green light where it plugs into the MacBook. When I took the computer into my local Mac store last time this happened (Nov 2012) they reckoned they couldn't find anything wrong with it. Has any body else encountered a similar issue?

    That would be a filter, yes. Didn't know Verizon handed out phone/DSL wall split filters. I would honestly take a look at the physical jack it is connected to for corrosion or lose connections as I doubt the filter is bad out of the box. Anyways, what was the original problem you had with the Phone and DSL that prompted Verizon to send out a filter?
    ========
    The first to bring me 1Gbps Fiber for $30/m wins!

  • Why does AirPort Extreme stop working when I plug in a USB hard drive?

    Why does Airport Extreme stop working when I plug in a USB hard drive?  The USB drive has its own power supply.  I've tried isolating the hard drive from Airport using a powered USB hub to no avail.

    The USB port on the AirPort Extreme is borderline as far as its ability to supply adequate power to a hard drive. Another way of saying the same thing is that this is not a high power USB port, like you would find on a computer.
    Your 2TB drive likely requires a bit more current than the USB port on the AirPort Extreme can supply. It is also possible that the drive's firmware may not support a network USB connection....only a "local" connection to a computer. Check with Seagate support on that possibility.
    Try using a powered USB hub with the 2TB drive....and make sure that the drive is formatted correctly in Mac OS Extended (Journaled) or FAT32....which the AirPort Extreme USB port can accept.

  • Why does CS6 automatically start when i plug in my Canon Eos camera and how do I stop it

    Why does CS6 automatically start when i plug in my Canon Eos camera and how do I stop it from doing so?

    Autostart is controlled by your operating system. check the relevant system control panel or right-click the drive letter of your memory card to change these options in teh properties.
    Mylenium

  • Why does my iTunes stop working when i try to sync music to my iPhone?

    Why does my iTunes stop working when I try to sync music to my iPhone?

    Morning Bandg72,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/ts1717
    Best of luck,
    Mario

Maybe you are looking for

  • 9.7 inch to 11.4 inch screen by conversion of black rim into notouch screen and same size nextgen ipad?

    i would like to have a same size ipad (9.7 inch) with a bigger screen (11.4 inch) by turning the black surrounding rim into screen. But, in order to handle it like the black rim notouch, that part of the screen should ALSO be notouch. It would make a

  • Can't load masque card games on my laptop

    why can't I load masque card game to my laptop. it said pro mac not supported

  • Bad service

    The technician had been to my place several times to fix the landline for the past month. However, he was unable to permanently resolve the issue. The phone line either has static noise and as of today the landline does not have a ringtone. In additi

  • RFC Not found from the Third party system

    Dear Friends, I have customized a RFC, All components are active. When I am searching the RFC from third party system this RFC is not able to find, others are showing. What could be the reason..../ Thanks & Regards

  • Add a Forum - Business Catalyst / Muse

    Hey Guys, thanks a lot for helping me out there. I would like to add a Forum (Bulletin Board) to my Catalyst page, which is in the hosting+ plan and is fed throught Muse. In the catalyst overview there is no option to add modules like suggested in th