Launchd cancels logout/restart and kills app when using screen sharing

I have an app I want to always run so I created a LaunchDaemon to keep it going:
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.sns.sentinel.air</string>
<key>KeepAlive</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/Applications/oc4j/restartSentinel.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
And restartSentinel.sh is very simple:
echo Process Sentinel.app is being restarted...
open -W /Applications/oc4j/j2ee/home/applications/Sentinel/Sentinel.app;
Everything seems to be fine but I have to access this machine via screen sharing. Then when I log in, the app gets shut down and only restarted a few minutes later. Also, when another user logs in, they are not able to log off. Launchd seems to cancel the restart.
I do also have two other plist files running other things but they seem to work okay (they don't crash, but the one which needs to be kept alive (code is almost the same as above) also seems to be preventing log out for users other than me).
So how can I get launchd to let people use screen sharing without killing the app and how can I get it to stop canceling logot/restart?

Try the Unix forum (not thread) under OS X Technologies.

Similar Messages

  • Password "wrong" or irretrievable when using Screen Sharing

    Strangely, I tried using Screen Sharing on the finder to access my iMac from my Macbook today and was asked to enter my password. I presume that this is my system password that I use to log in to my computer. It is the same for both. However, no dice...
    Furthermore, I can't find this password in Keychain...also to no avail. I have no idea how to get things right so that I can access Screen Sharing.
    Thanks in advance for any ideas you may have.

    Start with Finder->Help->Mac Help->search for *Screen Sharing* and peruse the many hits.

  • Kerberos local DC problem when using screen sharing

    Hi,
    this is a brand new Mac Mini server with preinstalled ML and Server.app 2.2.1.
    I started the following services: DNS (automatic), OpenDirectory, Sharing, Web and Mail. One additional user and that was it.
    After this configuration session, Kerberos seems to be in a non-operable state. See the information below. I can log in locally, can access a share (similar LKDC related error message as below), mail and screen share. But screen share takes ages to start and gives some nasty error messages.
    I have almost no knowledge of Kerberos and could use any help to fix-up the Kerberos configuration, preferably without reinstalling.
    If there is anything else you need to see about the server configuration, please ask.
    Turnin OD off and on again did not change anything. Keeping it off removes the error (obviously) but I think this will not be good for server operations.
    Regards, Andreas
    Problem statement: accessing the server from a ML client gives the following KDC error sequence before the authentication succeeds. This can take 20-30 seconds.
    26.02.13 15:31:21,001 kdc[2321]: Got a canonicalize request for a LKDC realm from 192.168.178.32:59299
    26.02.13 15:31:21,001 kdc[2321]: Asked for LKDC, but there is none
    26.02.13 15:31:21,001 kdc[2321]: Got a canonicalize request for a LKDC realm from fe80::426c:8fff:fe37:6b28%en0:59300
    26.02.13 15:31:21,001 kdc[2321]: Asked for LKDC, but there is none
    26.02.13 15:31:21,021 kdc[2321]: Got a canonicalize request for a LKDC realm from 192.168.178.32:59301
    26.02.13 15:31:21,021 kdc[2321]: Asked for LKDC, but there is none
    26.02.13 15:31:21,021 kdc[2321]: Got a canonicalize request for a LKDC realm from fe80::426c:8fff:fe37:6b28%en0:59302
    26.02.13 15:31:21,021 kdc[2321]: Asked for LKDC, but there is none
    26.02.13 15:31:32,079 kdc[2321]: Got a canonicalize request for a LKDC realm from 192.168.178.32:59306
    26.02.13 15:31:32,079 kdc[2321]: Asked for LKDC, but there is none
    26.02.13 15:31:32,080 kdc[2321]: Got a canonicalize request for a LKDC realm from fe80::426c:8fff:fe37:6b28%en0:59307
    26.02.13 15:31:32,080 kdc[2321]: Asked for LKDC, but there is none
    26.02.13 15:31:32,214 screensharingd[83904]: Authentication: SUCCEEDED :: User Name: Administrator :: Viewer Address: 192.168.178.32 :: Type: DH
    Apparently there is something seriously wrong with the Kerberos local data cache:
    sudo ./checkLocalKDC
    krbtgt/LKDC:SHA1.F0454A755D0C818D04161E8547E9D485D004F224@LKDC:SHA1.F0454A755D0C 818D04161E8547E9D485D004F224 doesn't exist, are you sure LKDC:SHA1.F0454A755D0C818D04161E8547E9D485D004F224 is a realm in your databaseThe kadmin check failed.
    configureLocalKDC did not fix this. There are Kerberos config files but I cannot determine if they were created before or after starting any of the services.
    sudo ls -l krb5kdc/
    total 48
    -rw-------  1 root  wheel    61 21 Feb 19:33 acl_file.MARVIN.DOMAIN.DE
    -rw-r--r--@ 1 root  wheel   330 26 Feb 20:17 kdc.conf
    -rw-------  1 root  wheel  4555 20 Feb 19:24 log
    -rw-------  1 root  wheel   111 20 Feb 19:24 m-key
    -rw-------  1 root  wheel    78 21 Feb 19:33 m_key.MARVIN.DOMAIN.DE
    sudo ktutil list (limited to vnc)
    1  aes256-cts-hmac-sha1-96  vnc/LKDC:SHA1.F0454A755D0C818D04161E8547E9D485D004F224@LKDC:SHA1.F0454A755D0C81 8D04161E8547E9D485D004F224       
      1  aes128-cts-hmac-sha1-96  vnc/LKDC:SHA1.F0454A755D0C818D04161E8547E9D485D004F224@LKDC:SHA1.F0454A755D0C81 8D04161E8547E9D485D004F224       
      1  des3-cbc-sha1            vnc/LKDC:SHA1.F0454A755D0C818D04161E8547E9D485D004F224@LKDC:SHA1.F0454A755D0C81 8D04161E8547E9D485D004F224       
      1  aes256-cts-hmac-sha1-96  vnc/[email protected]                                                                         
      1  aes128-cts-hmac-sha1-96  vnc/[email protected]                                                                         
      1  des3-cbc-sha1            vnc/[email protected]
    The Kerberos part of the server open directory settings:
    dirserv:kerberizedRealmList:availableRealms:_array_index:0:dirNodePath = "/LDAPv3/127.0.0.1"
    dirserv:kerberizedRealmList:availableRealms:_array_index:0:realmName = "MARVIN.DOMAIN.DE"
    dirserv:kerberizedRealmList:defaultRealm = "MARVIN.DOMAIN.DE"
    So far all fits AFAIK and the domain is also correct.

    After a night of experimentation, I found a workaround but do not know if this simply avoids Kerberos authentication or what is going on.
    It can be a domain problem except for the checkLocalKDC error that needs to be fixed anyway.
    Above I used the server occurrence in a Finder window, which I presume takes as a name marvin.local.
    Then I used a Go to Server vnc://marvin which worked without a Kerberos error. Also marvin.fritz.box (router) works fine.
    marvin.local looks up the machine via Bonjour, right? Can this be the reason for the difference in authentication?
    My domain setup is likely illegal at the moment:
    local DSL router does the DNS/DHCP for local devices
    server marvin has its own dns for marvin.domain.de (reason below) alone and otherwise uses the router dns
    domain.de is a registered domain (mine) with fixed ip and server behind
    Reason: the domain.de server will be replaced by a DynDNS provider forwarding any request to my dsl router, which acts a firewall and port forwarder.
    So my reasoning was that the new server marvin should be in domain.de as from the point of view of the internet, it is the machine at domain.de. Except that during setup and tests, it is not.
    The client accessing marvin however has no idea about marvin.domain.de! It uses the router as the dns.
    If anyone has done a similar setup (server behind router-ISP-DynDNS), I would appreciate examples how you setup the dns such that the server acts properly from the outside world of view.
    And yes, there is a MX at domain.de and SMTP requests will be forwared to marvin also.

  • HT201401 My iPhone3GS has started crashing. I'll be mid-phone call, or using an app, when the screen will go dark. I have to restart it. Then it shows low battery sign (even though it was 100%). Within 1 minute of charging, iphone starts. Pl. resolve.

    My iPhone3GS has started crashing. I'll be mid-phone call, or using an app, when the screen will go dark. I'll have to do a restart. It dumps to the warning screen that there's no power and needs to be plugged in.
    Once I connect the phone to a power source, in a couple of minutes it's ready to roll again, and displaying a "full battery" icon.
    The phone is almost always fully charged when this happens, and I don't get a crash when the phone is plugged into a power source.
    Took my iphone to apple store, they informed that battery is very good and there is no need for replacement. Might be there is a problem with iphone motherboard. But they can't repair it as my 3GS crossed warranty.
    Where should I go to repair this. Within 2 years...this 32GB 3GS is almost garbage for me with no support from apple. I am ready to send it to apple for repairs and pay the repair charges.
    I tried everything... deep reset ... factory settings .... nothing is working... Apple staff pl. take care of your customers ...

    This is a User to User Forum... You are Not Addressing Apple here...
    iPhone User Guide
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • Was just scrolling through my apps when the screen suddenly froze. A force shutdown didn't work and when I pressed the silent on/off button, there was no vibration either. The frozen screen faded to white with a few lines and about 10 minutes later, the

    I was just scrolling through my apps when the screen suddenly froze. A force shutdown didn't work and when I pressed the silent on/off button, there was no vibration either. The frozen screen faded to white with a few lines and about 10 minutes later, the edges started to turn black, forming a ring which got larger till about 4 hours later, the screen turned completely black. I tried connecting to iTunes but it wasn't detecting the phone and I can't do anything with it now... When it turned completely black, I charged it and after a while, the low batt screen came on but it was fuzzy and flickering with the white ring... What to do know ???????

    Restart your computer while holding down left mouse key. That will eject the CD and your Mac will start as normal.
    Lupunus

  • My ipad just starts putting in letters and opening apps when I am not touching it...what's happening????

    My ipad starts typing in random letters and opens apps when I am not touching it..what is happening??

    Try the sandard fixes:
    - Reset. Nothing is lost
    reset iPad. Press and hold both the Sleep/Wake button and the Home
    button for at least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPad.

  • HELP: I sync my iphone ios 4 to another iphone ios5, sync was completed but after a few mins, iphone will auto restart and freezes at the home screen which I can't unlock. I have to hold the "home"   "off" button to restart the phone.

    Dear all, please hel!!
    I sync my iphone ios 4 to another iphone ios5, sync was completed but after a few secs, the iphone with the IOS 5 firmware will auto restart and freezes at the home screen which I can't unlock. It will then freeze for a few secs before repeating the restart phase again and again and again.
    To solve this issue, I have to hold the "home"  + "off" button to restart the phone. Afterwhich, it will restart the phone. However, although my stuff are still on the phone, all my sms are gone.
    Can someone please assist urgently.
    My data was transferred from another iphone 3GS which is running an IOS 4.0.1 to another 3GS running ios 5.0.1
    Is there a serious compatibility issue with both firmware?
    Please help.
    Thanks!

    Can't I just set up Exchange as one of my calendars in ical?
    Only if you're running Snow Leopard and your employer will allow access (different than iPhone/mobile device access, so most likely not), but not needed - keep reading.
    Is it really true that I have to choose between syncing Exchange with work server OR syncing iCal with personal Macbook?
    No. It was true, but with the v3.0 software that changed - you can now sync your Exchange contacts and calendar over the air, and your Address Book and iCal via iTunes over the docking cable.
    What is the best work around for this?
    None needed. When you set up the exchange account, and choose to turn on syncing of contacts and calendars, you will be prompted to remove all other data, or keep it on the iPhone. Choose the keep option. Note that in that case, your personal data will not be uploaded to the Exchange server - the iPhone keeps them separate (although you can choose to view them in a merged fashion).
    I have this set up on my phone (Exchange calendar along side personal and other calendars from iCal). Same for contacts. Works great.

  • Prompting for password and username only when using dynamic parameters

    Post Author: Co3023
    CA Forum: Crystal Reports
    How do I stop CR XI prompting for password and username only when using dynamic parameters. When no dynamic parameters are used CR XI isn't prompting for the DB user name and password. The report is run from an application which passes the user name and password. I am using Oracle and the problem is both with the native oracle driver and the ODBC RDO driver.

    Post Author: jehanzeb
    CA Forum: Crystal Reports
    I didnt ask you to change it to static I said I took the parameters totally out of the report. Saved it. Then re-enter the dynamic parameters into the report and it worked for me. That might have worked for you, not sure why you changed it to static.
    Ok I have just created a quick report using dynamic parameters, it didnt ask me for the username password.
    Can you create a sample report - just to test the db? and see if it works? add only 1 or 2 fields in the report, create parameters (dynamic) and see if it works
    why don't you embed the username and password in your application, it won't ask for username password then.

  • Does DPM 2012 R2 still needs DataSourceGroups.xml and MaxAllowedParallelBackups key when using Hyper-V VSS Software Writer to backup Server 2012 R2 Cluster

    Hi,
    Does DPM 2012 R2 still needs DataSourceGroups.xml and MaxAllowedParallelBackups key when using Hyper-V VSS Software Writer to backup Server 2012 R2 Hyper-V Cluster with CSV's? Can't find a clear answer somewhere.
    Thanx for helping me out.
    DJITS.

    Configure CSV backups
    If you are running Hyper-V on Windows Server 2008 R2 and you’re backing up multiple clusters with DPM, you need to ensure that only one backup uses the same CSV at any one time. To do this, follow the instructions in
    Serialize virtual machine backups.
    If you’re using software VSS with Hyper-V on Windows Server 2008 R2, do the following
    Serialize virtual machine backups per node            
    Serialize virtual machine backups per CSV LUN            
    Have a nice day !!!

  • What can replace Appleworks Drawing app when using OSX Mountain Lion?

    What can replace Appleworks Drawing app when using OSX Mountain Lion?

    Please see this page which examines the problem:
    http://www.wilmut.webspace.virginmedia.com/notes/aw/page3.html

  • My computer crashed and I've tried restarting and keep getting a grey screen.  Have tried most of the options on the Apple support site

    My computer crashed this morning. Tried to restart and get nothing but grey screen.  Have tried soft boot, reseting PRAM.  Tried my original disc and now that is stuck in the drive.  Nothing but grey screen appears.

    On the bottom of the MBP is the serial number. Enter it here and post back the model/year information.
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    try a SMC reset:
    http://support.apple.com/en-us/HT201295
    Ciao.

  • HT4889 Hi. I`ve just started transferring from my old Imac to a new Macbook, using the WIFI. But I realize it will take days to get it done. Can I cancel the process, and start over again using the thunderbolt port? Without causing any trouble?

    Hi. I`ve just started transferring from my old Imac to a new Macbook, using the WIFI. But I realize it will take days to get it done. Can I cancel the process, and start over again using the thunderbolt port? Without causing any trouble?

    See Pondini's Setup New Mac guide for possible answers.

  • Will a iphone purchased in Singapore be covered under complete hardaware and software support when used in India

    Will a iphone purchased in  Singapore be covered under complete hardware and software support when used in INDIA

    See Here  >  http://www.apple.com/legal/warranty/

  • IChat crashes with EXC_BAD_ACCESS (SIGBUS) when attempting screen sharing

    I seem to have an unstable iChat on my 27 inch i7 iMac since early January when it replaced a 24 inch model where iChat worked well.
    I've been reading various helpful posts and tried things like trashing the plists, set my speed limit to 500kbps, running in 32 bit mode.
    I use screen sharing to support my elderly mother and some of her equally elderly friends who I have converted to mac but it's getting terribly frustrating since I cannot reliably connect for screen sharing and end up having to drive for 2 hours to sort out basic stuff. The most recent crash is EXCBADACCESS (SIGBUS). I'll post a short extract below. But I've also had other errors (SIGSEGV).
    I've now discovered that I get the same failure about half the time when testing in-house both connecting over the internet and via Bonjour to a new 15 inch core duo MBP both machines running 10.6.2. Any ideas please? Sometimes it works, sometimes it doesn't.
    Process: iChat [735]
    Path: /Applications/iChat.app/Contents/MacOS/iChat
    Identifier: com.apple.iChat
    Version: 5.0.1 (743)
    Build Info: iChat-7430000~2
    Code Type: X86 (Native)
    Parent Process: launchd [89]
    Date/Time: 2010-02-28 18:59:06.521 +0000
    OS Version: Mac OS X 10.6.2 (10C2234)
    Report Version: 6
    Interval Since Last Report: 1278114 sec
    Crashes Since Last Report: 24
    Per-App Interval Since Last Report: 863061 sec
    Per-App Crashes Since Last Report: 22
    Anonymous UUID: 890F0781-E477-4575-9FB1-C9DCD4D8B331
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000021
    Crashed Thread: 11
    Thread 11 Crashed:
    0 libobjc.A.dylib 0x97083ed7 objc_msgSend + 23
    1 com.apple.CoreFoundation 0x96ba5fc2 __CFBasicHashAddValue + 50
    2 com.apple.CoreFoundation 0x96bae699 CFBasicHashSetValue + 169
    3 com.apple.CoreFoundation 0x96bae49a CFDictionarySetValue + 202
    4 com.apple.Foundation 0x91e3f87a -[NSCFDictionary setObject:forKey:] + 308
    5 com.apple.viceroy.framework 0x94d76046 -[SDPAnalyzer resetSDP] + 214
    6 com.apple.viceroy.framework 0x94d781f5 -[SDPAnalyzer init] + 117
    7 com.apple.viceroy.framework 0x94d76e42 -[SDPAnalyzer initWithViceroyDefaultsUsingZeroes:forAudioOnly:withUserCount:] + 50
    8 com.apple.viceroy.framework 0x94da6d0a -[VideoConferenceMultiController(VCInitiateConference_Private) initiateConferenceCallUsingConnectionDataWithErrorInfoToUser:withRemoteVCConnec tionData:withLocalVCConnectionData:oneWayOnly:errorInfo:shouldFindExternalIP:] + 1034
    9 com.apple.viceroy.framework 0x94da52ef -[VideoConferenceMultiController(VCInitiateConference_Private) initiateConferenceToUserWithVCConnectionDataProc:] + 927
    10 com.apple.Foundation 0x91e528d8 -[NSThread main] + 45
    11 com.apple.Foundation 0x91e52888 _NSThread__main_ + 1499
    12 libSystem.B.dylib 0x92253fbd pthreadstart + 345
    13 libSystem.B.dylib 0x92253e42 thread_start + 34

    Hi,
    It does seem that is a specific build.
    10C refers to 10.6.2 as a range of builds
    The numbers after that are normally 3 digits long and yours is 4
    Those people that sign up for the Developers copies tend to get minor/text update as testers along the way which is why a General Release version tends to be a specific number. (In this case 10C540)
    There are other things we could try that may help.
    Try Launching Disk Utility (Applications/Utilities and Setting the tab to First Aid then use the "Repair Permissions" button.
    Also try a PRAM reset.
    Shut down the computer.
    Restart it holding down APPLE(or ⌘)ALT(⌥)+PR Keys until you have heard three Start Up Bongs.
    Do them one at a time and then test iChat.
    After this we will move to deleting ichat .plists and forcing it to rewrite them from defaults.
    9:12 PM Sunday; February 28, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Can I display EyeTV's live TV over HDMI-out and be able to see my desktop using screen-sharing on a headless mac-mini used as a media-box?

    Hi,
    I'm thinking of buying a new mac-mini to replace my current one which acts as an iTunes server and records TV programs using eyeTV. I connect using screen-sharing/VNC to be able to do stuff on it (like handbrake etc.)
    I have eyeTV with a satelite receiver and I want to change the setup so that:
    - the new mac-mini continues to work as an iTunes server (and handbrake workhorse)
    - I can use the HDMI output (inc. audio) to show eyeTV's live TV full-screen app
    - I can connect using screen-sharing/VNC to the mac-mini and see my normal desktop to be able to maintain it etc. but this is a headless display (no screen is connected to the display-port).
    - recorded media I'd play through the appleTV2 still + rentals etc. unless anyone knows if eyeTV software can offer up iTunes content? I don't like the eyeTV recordings in general as it seems very slow to me for access when there are lots of recordings and wouldn't be available in other apleTVs in the house AFAIK.
    The main benefit that this gives me is that I'd no longer need a seperate satelite box to watch live TV and can add more eyeTV hardware to get additional TV channels all through the same HUD on the TV for ease of access.
    Does this seem possible in theory & practice (ie are there any gotcha's to consider?)
    - can I force the HDMI output resolution to 1080i as I go via an amp to the TV and the appleTV2 drops to low-res in this configuration so I have had to find a workaround for that.
    - does the mac-mini have IR input that can be programmed?
    - Does eyeTV software remain stable for long periods?
    - Does the HDMI out have any handshake issues that would need a reset of the display (somehow)?
    thanks in advance for any thoughts/contributions
    Lee

    I think the easiest way to do this is to have the EyeTV app running in one user account and sent via HDMI to the TV, and use a separate user account for Screen Sharing. Both logins can be active at the same time and with Lion you can connect via screen sharing to which ever login you need.
    With regards to the Mac video resolution changing, when it is not the current input on your AV receiver. This is 'normal', if the Mac sees no signal it drops down the a lower level. What you need is to buy a HDMI Detective Plus which tricks the Mac in to always seeing a signal and hence it will not drop down the resolution. See http://www.gefen.com/kvm/dproduct.jsp?prod_id=8005
    The Mac mini does have an IR receiver. This can be used with the EyeTV app, iTunes, and similar. Yes I believe EyeTV would run for prolonged periods quite happily, it is has been around for a long time and had most of the rough edges polished off. However one issue you will have to deal with is that it does not automatically update its program guide data. For this you might have to write or modify an AppleScript. Elgato support or their user forums will be a lot of help.
    You can set EyeTV to convert recordings to an iTunes (Apple TV) compatible format and then delete them from EyeTV.
    The HDMI Detective should solve your handshaking problems.

Maybe you are looking for

  • ECL Viewer 6.0 - PDF View & Print Resolutions

    Hi, We installed SAPGUI 710 & ECL Viewer 6.0 Patch 4 for all our users. Settings were made to display PDF through ECL Viewer in DC30. We observed the following issues while working on PDF Display quality are not good due to poor resoultion. Even when

  • IWeb - Dream Weaver Tag Team

    I used iWeb to design my site and really dig how user friendly it is. I don't understand why pro web design apps can't be this easy. I want to use dream weaver only to make updates to my gallery. This would keep me from having to re-upload the whole

  • Frustrating dependencies problem

    Hi everyone, I've got a problem with a large and undocumented portlet project I have taken over from another developer who has left suddenly. Don't worry - not looking for help with anything portal related - its more your traditonal java dependencies

  • HTML vs. XML

    which is better for web and java use? programmers please vote: 1. html 2. xml

  • Error in Internal order settlment to AuC

    Dear Experts, When I am running KO88 investment order settlement to asset under construction, getting the following error. Acquisition value negative in area 01. Message no. AA617 Asset affected: 5455071-0000 Note: In my book depreciation area 01 the