Service seems to randomly fail to start

I wonder if I am missing something obvious here. The service never fails to start when started manually. It only fails occasionally from a system startup.
The Java jar needs to run with a user's credentials and networking. Why would this fail randomly? What can I do to cause a restart? If the service did fail all I do is log in and run svcadm disable rrtserver then svcadm enable rrtserver it's like I am missing some dependency that causes failure but is up when I log in. Any ideas?
Here's the file /lib/svc/method/rrtserver
. /lib/svc/share/smf_include.sh
# Java config
JAVA_HOME=/usr/jdk/instances/jdk1.5.0
JAVA=${JAVA_HOME}/bin/java
JAVA_OPTS="-server -Xms64m -Xmx1g"
# RRT config
RRT_HOME=/disk80/RRT/Programs/network
RRT_CONSOLE=${RRT_HOME}/logs/svc.log #/dev/null
# Instance specific
RRT_SERVICE=`echo $SMF_FMRI | sed 's/.*:\(.*\)/\1/'`
PIDFILE=${RRT_HOME}/rrtserver_${RRT_SERVICE}.pid
# Environment
PATH=/disk80/RRT/utils:/bin:/usr/bin
LD_LIBRARY_PATH=/usr/sfw/lib:${JAVA_HOME}/jre/lib/i386/server:${JAVA_HOME}/jre/lib/i386
RRTPATH=/disk80/RRT
export PATH LD_LIBRARY_PATH RRTPATH
rrt_start() {
     echo "Starting RRT Server..."
     $JAVA $JAVA_OPTS -jar $RRT_HOME/network-server.jar $RRT_HOME/server.xml >$RRT_CONSOLE 2>&1 & echo $! >${PIDFILE}
rrt_stop() {
     echo "Stopping RRT Server..."
     PID=`cat ${PIDFILE}`
     kill -TERM $PID
     pwait $PID
     rm ${PIDFILE}
case "$1" in
'start')
        rrt_start
'restart')
     echo "Restarting RRT Server..."
        rrt_stop
     rrt_start
'stop')
        rrt_stop
        echo "Usage: $0 { start | restart | stop }"
        exit 1
esac
exit $SMF_EXIT_OKHere's the file /var/svc/manifest/application/rrtserver.xml
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="rrtserver">
     <service name="application/rrtserver" type="service" version="1">
          <create_default_instance enabled="true" />
          <single_instance />
          <dependency name="loopback" grouping="require_any" restart_on="error" type="service">
               <service_fmri value="svc:/network/loopback" />
          </dependency>
          <dependency name="filesystem" grouping="require_all" restart_on="error" type="service">
               <service_fmri value="svc:/system/filesystem/local"/>
          </dependency>
          <dependency name="autofs" grouping="require_all" restart_on="error" type="service">
               <service_fmri value="svc:/system/filesystem/autofs"/>
          </dependency>
          <dependency name="network" grouping="optional_all" restart_on="error" type="service">
               <service_fmri value="svc:/milestone/network" />
          </dependency>
          <exec_method name="start" type="method" exec="/lib/svc/method/rrtserver start" timeout_seconds="180">
               <method_context>
                    <method_credential user="aces" group="rrt" />
               </method_context>
          </exec_method>
          <exec_method name="restart" type="method" exec="/lib/svc/method/rrtserver restart" timeout_seconds="60">
               <method_context>
                    <method_credential user="aces" group="rrt" />
               </method_context>
          </exec_method>
          <exec_method name="stop" type="method" exec="/lib/svc/method/rrtserver stop" timeout_seconds="60">
               <method_context>
                    <method_credential user="aces" group="rrt" />
               </method_context>
          </exec_method>
          <!-- sub-process core dumps shouldn't restart session -->
          <property_group name="startd" type="framework">
               <propval name="ignore_error" type="astring" value="core,signal" />
          </property_group>
          <template>
               <common_name>
                    <loctext xml:lang="C">RRT server</loctext>
               </common_name>
          </template>
     </service>
</service_bundle>

[root]# ps -e | grep httpd
1234 1234 httpd
1235 1234 httpd
1236 1234 httpd
1237 1234 httpd
1238 1234 httpd
1239 1234 httpd
1240 1234 httpd
1241 1234 httpd
Your ps headers aren't there, but it looks like the columns are 'pid' 'ppid' 'name'   If this is the case, then these are threads, created by the parent pid of 1234, though these numbers look modified. Getting a pid of 1234 is quite lucky.
If this is the case then it's not spawning procs, but threads and is normal. Why they don't appear when manually started may be a configuration thing, as in it loads a different config file. What command do you use to start it manually?

Similar Messages

  • I am trying to reinstall iTunes but seems the Service Apple Mobile Device failed to start so I am not able to finish the download, what should I do.

    I am trying to install itunes but at the status of 'Starting Services' it tells me that 'Service Apple Mobile Device failed to start. Verify that you have sufficient privileges to start system services". I clicked retry and ignore button but same result.  What shoud I do? 

    Has your windows previously installed itunes?
    Do uninstall all other apple programs such as
    Apple Application Support
    Apple Mobile Device Support
    Apple Software Update
    Bonjour
    these programs above doesn't remove together with itunes.
    remove these programs and make a reboot for ur windows.
    then download the latest itunes and install.

  • Error Message "Service 'Apple Mobile Device' failed to start"

    Tonight I tried to install the latest update for iTunes, only to get the error message "Service 'Apple Mobile Device' failed to start". I tried the installation again with my iPod connected (the only Apple device I own) and it made no difference. So I tried uninstalling and re-installing, and the same error message came up.

    alif1216 wrote:
    turingtest2
    Can you give me an idea of what's going on? I'm not super computer savvy, so baby steps, please.  And thanks in advance.
    Seems some sort of clash between the installed components and the new installer causes the install to go haywire for some people. I don't have a detailed expanation of why, but I do know that attempting to repair or reinstall iTunes alone in the usual way won't work. You need to work through the steps outlined below. I've updated them a little since yesterday....
    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • ITunes fails to load.  Message is Service Apple Mobile Device failed to start. Verify you have sufficient privileges to start system services. Never had this problem before trying to install this upgrade

    iTunes fails to load.  Message is "Service Apple Mobile Device failed to start. Verify you have sufficient privileges to start system services." Never had this problem before trying to install this upgrade. How do I fix this?

    Dave, same problem here.  And I did go in as admin to Administrative Tools, Services, Apple Mobile Devices and tried restarting the service.  It seems there is a bug with the newest update, period.  All of the normal "easy" steps don't work.  Before I remove all of Apple's programs, including Bonjour....I'm running a full system scan.
    But the answer will be to remove all of the Apple stuff, then reboot, then use whatever utility you have to remove all temp files...then go download and install it again.  This has worked for several people (I read the thread before posting).  Win 7 64bit.  It just seems that Apple did not thoroughly test this new version.   Period.
    If Apple reads this...I have many computers...and whenever Apple wants to update something...it just about stops everything else that is going on.  Total memory hog, even with 16G RAM and dual quad core processors.  It has to learn to play nice with others.
    After the scan and I'm sure an hour or two of work...I'll re-post. 
    Of course if you do image back-ups, as I do, you can simply restore your drive to its previous state and run the previous version of iTunes, declining the update, until Apple gets it right.  Depending on the size of your drive, this could take hours.  It is a matter of choice, of course.

  • Encountered an error apsdaemon.exe when trying to update itunes.  Tried to redownload it and it said Service 'apple mobile device' failed to start and do I have sufficient privileges to start system services?  I have an Ipad too.  R they talking about it?

    Encountered an error apsdaemon.exe when trying to update itunes.  Tried to redownload it and it said Service 'apple mobile device' failed to start and do I have sufficient privileges to start system services?  I have an Ipad too.  R they talking about it?  I didn't uninstall Itunes from the Ipad Just my PC,

    I don't think so...Seems like an apple issue to me...Or do you know something I don't?

  • Itunes wont open and when re-installed received this msg: Service Apple mob device failed to start.  You have insufficent privileges to start system svc.  Help?

    Itunes wont open and when re-installed received this msg: Service Apple mob device failed to start.  You have insufficent privileges to start system svc.  Help?

    Download Itunes from Apple.com, not from within Itunes.
    Redo the install, following the below procedure.   However, when you re-install Itunes,  right click and run the install as administrator.   For Win 7, you have to hold down the cntrl and shift keys when you right click and then "run as administrator" will be an option.
    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (Vista, Win 7 & later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes

  • I got the MSCVR80.ddl message after I tried to do the latest update on Itunes.  I went in and deleted all the related programs and reinstalled, but I keep getting a message during installation that "Service 'Apple Mobile Device' failed to start. Help!

    I was trying to do the latest update on my desktop for my Itunes.  I got MSVCR80.dll is missing.  I saw a post about deleting all the apple itunes programs, restarting and reinstalling.  I tried that.  As it was installing a message came up about "Service'Apple Mobile Device' failed to start. Verify that you have sufficient privileges to start systems services.  I did a retry, got the same message, then hit ignore.  It went on.  Then a message popped up saying "Itunes not installed correctly"  Error 7 (Windows error 126)
    Now my Itunes program will not open at all.  What gives?  This is very frustrating and I am not very computer literate to begin with.

    Hi Iss9243,
    Welcome to the Support Communities!
    You've already tried some great troubleshooting steps, but the article below gives you quite a few more for this issue.  Hope it helps ....
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    - Judy

  • Error 1920-Service 'Apple Mobile Device' failed to start.

    Hi,
    When ever I try to install the Apple Mobile Device Support this message shows up "Error 1920-Service 'Apple Mobile Device' failed to start. Verify that you have sufficient privileges to start system services".  I have uninstalled itunes multiple times. I have tried only installing the Apple Moblie Devuce Support by doing the extract file from WinRaff. Nothing has worked. Could you please help me? I'm getting relly frusturated with this whole thing. All I want to do is download songs on to my i-pod.
    Thank You,
    Aleida H.

    I guess the short answer is don't try to pass MSI properties to the installer.
    I don't think this is anything your fellow users can help with, but you might want to file a report at Bug Reporter.
    tt2

  • Not able to install itunes in win 7 installng setup error "Service 'Apple Mobile Device' failed to start Verify that you have sufficient privileges to start system services" ignoring msg

    not able to install itunes in windows 7. Whwn I am installng setup the error displayed as  "Service 'Apple Mobile Device' failed to start Verify that you have sufficient privileges to start system services" and when i ignore this message and continue with installation of itunes and open the installed itunes in laptop it gaian shows the error "iTunes was not installed correctly. Please reinstall iTunes Error7(Windows Error 14001)". Please provide me some solution.

    Please give me some solution on above issue.....

  • Can't download iTunes "Service Apple Mobile Device failed to start.

    I have a new computer and I am unable to download iTunes.  I get the following message "Service 'Apple Mobile Device' failed to start. Verify that you have suffiecient privileges to start system services."  Please note, iTunes is not installed at this point.  Previous discussions have been unhelpful, as they direct me to iTunes files that are currently non-existent due to me not being able to complete installation.
    Any help would be appreciated! Thanks!

    Use the Control Panel to uninstall iTunes and related software components in the following order and then restart your computer:
    iTunes
    QuickTime
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended affects.

  • Having difficulty updating to latest version of iTunes for my PC. Originally got C   runtime error response. Uninstalled iTunes, then tried reinstalling and now receiving "service (Apple Mobile Device) failed to start" response.

    When attempting to update to latest version of iTunes on my PC (11.1.4) I received an error message: Microsoft Visual C++ Runtime error as well as: AppleSync Notifier.exe - entry point not found, the procedure entry point sqlite_wal_checkpoint cound not be located in the dynamic link library SQLite3.dll.
    I unistalled iTunes, then attempted to reinstall. I get to a point where I receive the following response: Service (Apple Mobile Device) failed to start.Verify that you have sufficient privileges to start system services." I'm stuck at this point and unable to proceed with install. Help please!

    Hi yuiopyy,
    If you are having issues with iTunes after an attempted update, you may find the following article helpful:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Regards,
    - Brenden

  • Service apple mobile device failed to start privileges

    I tried to download the latest version of ITunes, and I received this message: Service Apple mobile device failed to start. Verify that you have sufficient privileges to start system services.
    How can i solve the problem?
    Thanks for your help.
    Ephrem65

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Error message: Service 'Apple Mobile Device' Failed to start. Verify that you have sufficient privileges to start system services.  How do i fix?

    How do I fix this problem??
    I received this Error Message while trying to install on my netbook again.  (Service 'Apple Mobile Device' Failed to start.  Verify that you have sufficient privileges to start system services.  I had Itunes on already but it stop work so I uninstalled it to reinstall it but it wont work. 

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • TS3694 Service 'Apple Mobile Device' failed to start. Verify that you have sufficient privileges to start system services.

    I keep getting this error message when I try to install iTunes. I have uninstalled/installed several times making sure that I removed EVERY file associated with this program. I do have the privilages however I am being ignored. Before I become bald from pulling my hair out can you please HELP!!!!!!!  
    Service 'Apple Mobile Device' failed to start. Verify that you have sufficient privileges to start system services.

    SAME EXACT PROBLEM! SO FRUSTRATED AND ****** OFF!

  • HT1926 Installing iTunes 11.1.4 on windows XP issues warning message: Service "Apple Mobile Device' failed to start. starting iTunes shows MSVCR80.dll not found.

    Normal update of iTunes to 11.1.4 fails. Suggests installing from web site
    I install from iTunes.com. Install issues the messages:
    Service "Apple Mobile Device' failed to start.
    Verify that you have sufficient privileges to start system services
    I do have necessary privilegs. I hit ignore. See window with successful install come up and finish with launch. I get the messages:
    iTunes was not installed correctly.
    Please reinstall iTunes
    Error 7 (Windows error 126)
    Tring to start iTunes from desktop gives:
    This application failed to start because MSVCR80.dll was not found
    Re-installing the application may fix the problem.
    Further repair or remove/reinstall does not fix the problem (including after reboot)
    Thie is the first time this has happened. I'm not sure where to go from here
    Thanks for any help.

    Earlier suggestion worked. That is, Use software add/remove to delete all 5 iTunes applications:
    Apple Application Support
    Apple Mobile Device Support
    Aple Sortware Update
    Bonjour
    iTunes
    Reboot and install/

Maybe you are looking for