Restarting too quickly, changing state to maintenance

I'm trying to add a new resource to stop/start at reboot time. It's a single process that needs to be started, but everytime I enable the resource it keeps stopping and starting it until eventually it goes into maintenance saying "Restarting too quickly, changing state to maintenance".
I have the following in the /lib/svc/method (start) file :
#!/sbin/sh -xv
# Start method script for the xcom service
. /lib/svc/share/smf_include.sh
case "$1" in
'start')
if [ `pgrep xcomd` ]
then
echo "$0: XCOM is already running..."
exit $SMF_EXIT_ERR_NOSMF
fi
if [ -x /etc/xcomd ]
then
echo "Starting XCOM..."
/etc/xcomd
else
echo "XCOM is not installed or not executable..."
exit $SMF_EXIT_ERR_NOSMF
fi
'stop')
if [ `pgrep xcomd` ]
then
echo "Stopping XCOM..."
/etc/xcomd -s
else
echo "XCOM is not running..."
fi
esac
exit $SMF_EXIT_OK
And the following in /var/svc/manifest/application/xcom.xml :
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
<service name='application/xcomd' type='service' version='0'>
<create_default_instance enabled='true'/>
<single_instance/>
<dependency name='usr' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='/system/filesystem/minimal'/>
</dependency>
<exec_method name='start' type='method' exec='/lib/svc/method/xcomd %m' timeout_seconds='60'>
<method_context/>
</exec_method>
<exec_method name='stop' type='method' exec='/lib/svc/method/xcomd %m' timeout_seconds='60'>
<method_context/>
</exec_method>
<stability value='Unstable'/>
<template>
<common_name>
<loctext xml:lang='C'>XCOM file transfer program</loctext>
</common_name>
<documentation>
<manpage title='xcomd' section='8'/>
<manpage title='xcomcfg' section='8'/>
</documentation>
</template>
</service>
</service_bundle>
Any ideas where this is going wrong??? I've pulled the manifest file togeher looking at other things so I'm not surprised if there's errors in there. Any help greatly appreciated.

Change the name of the script to be anything other
than 'xcomd' or 'svc-xcomd' and it would work. That's
what I've done now. The start/exec and stop/exec now
call a different script. One problem I had with this
was even though when doing a 'listprop' it showed it
had taken the change, and I'd exported it out to the
manifest file, when trying to enable the resource it
would complain that it couldn't find the old script
[ Feb 15 18:12:53 Executing start method ("/lib/svc/method/svc-xcomd") ]
/sbin/sh: /lib/svc/method/svc-xcomd: not found
[ Feb 15 18:12:53 Method "start" exited with status 1]
Is there a way of refreshing things one you make a
change??? When I'm exiting out I'm either using 'end'
or 'exit'.Yes, you have to run "svcadm refresh xcomd". This is
because svc.startd uses the property values from the
"running" snapshot of the service. svcprop does that by
default as well. A plain listprop in svccfg, though, will only
show you the current values of the properties. (You can use
selectsnap to select the running snapshot and examine its
property values with listprop.) svcadm refresh updates the
running snapshot with the current property values, so that must
be done after changing properties.

Similar Messages

  • Just bought Photoshop Elements 13...I'm trying to make a slideshow but can't figure out how to alter duration time that the slide is on the screen.  They presently move from one to another way too quickly...also need a different pan and zoom option.  Wher

    Just bought Photoshop Elements 13...I'm trying to make a slideshow but can't figure out how to alter duration time that the slide is on the screen.  They presently move from one to another way too quickly...also need a different pan and zoom option.  Where are all the options I had in PS10?  Also...Can I burn this to a DVD?

    The changes have brought improvements but also drawbacks compared with the old slideshow editor.
    The templates are now fairly fixed but I find the “Classic Dark” gives reasonable results with some panning and you can click the audio button and browse you PC for any track. Unfortunately there are only three speed choices linked to the music track. The improvement for most people is that you can now export to your hard drive at 720p or 1080p and upload to sites like YouTube and Vimeo.

  • Quick change of external HD from AEBS to firewire?

    I am wondering if there is any way to quickly change the connection of my LaCie 300 gb external HD from AEBS to firewire and back. I can get it the drive to work over AEBS for streaming my music etc., but for alot of stuff it is too slow. I want to be able to connect my external HD to firewire when I am importing music and moving large files to my HD, and then quickly change to the AEBS when I want to move about the house with my laptop. Currently I have to disconnect the wires and reboot. Any ideas or programs that might help me? Thanks!
    1.25 GHz Powerbook G4   Mac OS X (10.4.10)  

    Currently I have to
    disconnect the wires and reboot. Any ideas or
    programs that might help me? Thanks!
    Actually the right thing to do is to "eject" the disk first, disconnect the wires and then reboot. Doing anything else is a great recipe for disk corruption.

  • MSN Messenger starting too quickly!!!

    As my previous post states, I have just got my new Macpro, and its nice and quick. Infact, the boot up seems to start too quickly. The login, and 'open at login' apps seem to load so soon that the network connection hasn't started yet. I get a 'network diagnosis' messsage that i cancel, and as i try to sign in to MSN again, it works. The internet connection is ADSL via a router wired to left rc45 port when looking from back, and I use static ip internally.
    Any ideas? Could it be related to grey screen with horizontal lines that I get on startup? Cheers.

    Just reinstalled osx (hang up from pc days where I always resinstalled os) hoping that would cure the problem, but it doesn't. I think the problem is that the WindowServer starts before network startup has complete.
    For example:
    Jul 19 20:17:20 paul-williams-computer lookupd[110]: lookupd (version 369.6) starting - Thu Jul 19 20:17:20 2007
    is after
    Jul 19 20:17:07 [53] Server is starting up
    Therefore, all apps starting on login (now skype, msn and ichat) all fail to start up. The router is an Orange router connected via cat5, and was available at all times. I have never seen this on the imac G5 + mac mini g4, so could the network card be slightly slower to be 'recognized' by osx?

  • Aironet 1200 Interface changed state to reset

    Hello,
    I have used the command snmpset to change the properties of my ap.
    After that, i got the following message:
    Notification: Interface Dot11Radio0, changed state to reset.
    When the AP resets its state, all the clients are disconnected.
    How can i avoid the reset of the AP?
    I want to make changes dynamically - and also i want my clients to maintain their connection.

    Hello again,
    Yes it's my mistake,the AP restarts for the new changes to take effect.It doesnt reset.
    Particularly i change the MAX Association number of the clients using SNMP.
    When i do this the AP disconnects all the clients!
    Is it necessary or i have a wrong firmware version.

  • Network Access dialog box keeps popping up too quickly to click

    Lately, Compressor (or maybe Batch Monitor) has been causing this problem:
    While a batch is compressing, a dialog box pops up on the screen for a fraction of a second, way too quickly to read it or click on it. I see "Deny" and "Allow" buttons, so I am guessing it's a dialog box asking about network access.
    I found that it pops up at the same time interval I set in Batch Monitor's prefs for updating.
    I tried trashing Compressor's prefs and restarting it.
    The frustrating thing about this problem is that it interrupts anything else I'm doing. It interrupts typing, or a mouse drag. The only workaround I've found, so far, is to not run Batch Monitor at all.
    I'd reinstall, but that'll take days because I have to track down someone in the company who keeps the install media under lock and key. I'm hoping you know of a way to solve this... please? A search of this forum turned up nothing, so far, but I saw a user posted about this problem on another site... and the solution suggested there didn't work for me (not sure it worked for him, either).

    I was having the same problem and noticed that while hovering over a menu item, the popping box stopped popping up. I of course couldn't keep my mouse hovering over a menu item forever and do anything else, but luckily I tried selecting "About Compressor" from the menu and that stopped the box from popping up as well and let me go on to other applications. As long as you don't click the About Compressor box off the screen, the popping box problem is solved, at least for me it is working...
    I hope this helps you...

  • Cloud notifications disappear too quickly

    I have just started experimenting with collaborating on documents with my partner on Creative Cloud. Working together on them has been great but one problem I have is keeping track of when my partner has made changes and is ready for me to look it over. The notifications from Cloud flash up on the screen and then disappear within seconds. That means if I happen to be looking the other way, or I am making a cup of tea, I miss them and don't know to go back in and see what my partner has done. Is there some way of getting the notifications to stay up on the screen or divert to e-mail or something like that so that I know he has made changes?

    Hello Bergeret.
    I'm guessing any menu will disappear too quickly too, and that this isn't just about the bookmarks menu.
    In any case, it's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.

  • Batteries run out too quickly!

    Hello!
    I have a macbook Pro (13 inches) since march 2011, and since I bought it, the batteries run out too quickly, only in 90 minutes, and if I try to watch a film or to use facetime is less time. I went to apple store 5 times: 1st they changed the batteries twice, 2nd they changed the hardware, 3d they formatted my computer, 4th the changed the network? (I,m not quite sure about what they did the last time) and now it is worse, the batteries run out in 60-70 minutes. I don't know what to do, I am really disappointed with apple care service.
    Thank you very much for your help in advanced.

    What are you doing with the phones?
    What apps do you use on a daily basis?
    The iPhone was designed to work for a whole workday...
    Are you  streaming video/music over 3G?
    Using maps?
    Full screen brightness/working outside?
    Once we know what you do, then we can advise on battery tips

  • Podcasts play too quickly...

    I have an iPhone 4 and I'm running Snow Leopard. Audio podcasts play too quickly on the iPhone but are fine in iTunes. Video podcasts are fine it's just the audio. Does anyone know why?

    Tap the now playing screen, and you’ll see a little “1x” icon at the top-right — tap that, and it’ll change to “2x”, "1x", "1/2x".
    !http://gigaom2.files.wordpress.com/2010/05/photo3.jpg?w=320&h=480!

  • My ink depletes too quickly

    My ink seems to run out too quickly.  I talked to a person from HP and I was informed that you should get at least 200  pages with 15 % coverage per cartridge.  I'm not getting any where near that many pages.  Is there a setting I can change on my HP Photosmart Printer to lengthen the life of my ink cartridge?  I know I am paying less for my cartridge and thought maybe that might be a possibility.  Has anyone else experienced this situation?  Thanks in advance'
    Strawbeary.

    What printer model? What operating system? Are you replacing the cartrdiges when they actually run out of ink or when the first low ink warning happens?
    Printing in draft mode will use about half the ink of normal or best modes.  Printing on photo paper uses much more ink than printing on plain paper for the same print.
    Depending on your printer model the low on ink indicator is probably giving you an advance warning so you can have a spare cartridge on hand for when it is needed.  On most printers you will not need to change the cartrdige until it actaully runs out as exidenced in changes in print quality.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,change remotes, no change.Help please.

    Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,changed remotes, no change. Latest software update. This is really annoying.  iPhone remote app works just fine.  Any suggestions?

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

  • How do I stop my screen saver from coming on too quickly on my MacBook Pro 2012, How do I stop my screen saver from coming on too quickly on my MacBook Pro 2012

    How do I stop my screen saver from coming on too quickly on my MacBook Pro 2012

    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro
    https://discussions.apple.com/community/mac_os?view=discussions 
    http://www.apple.com/support/macbookpro

  • Changing states from within a component

    Let's say that I have a TileList that is rendering data in a
    VBox. Eventually the TileList fills up and starts scrolling. I want
    to change states when clicking on item in the TileList.
    I don't want to place the click-attribute in the TileList,
    because it will change states when I am scrolling the list without
    actually selecting anything.
    I want to say click="currentState='state2'" inside the VBox,
    but that does not work because state2 is at the root level, and I
    don't know how to get to the root-level (in lack of a better word)
    from withing the component.
    This is not the proper syntax, so misunderstand me the right
    way here... Is there an equivallence to
    click="currentState='_root.state2'" in mxml?
    Thanks for any suggestions or best practices. I want the easy
    way out.
    This is the general structure...
    <mx:Application>
    <mx:states>
    <mx:State id="state1"/>
    <mx:State id="state2"/>
    <mx:State id="state3"/>
    </mx:states>
    <mx:TileList dataprovider="{...}">
    <mx:itemRenderer>
    <mx:component>
    <mx:VBox id="ClickThisBoxToChangeStates">
    <mx:Image/>
    <mx:Label/>
    </mx:Vbox>
    </mx:component>
    </mx:itemRenderer>
    </mx:TileList>
    </mx:Application>

    Your assumption is right.
    It doesn't work because there is no state2-state defined
    within the mx:component.
    In the documentation about changing states it says that I can
    go from application level and change states within a component;
    like this: click="currentState='mycomponent.anotherstate'" but not
    how I can change a state at application level from within a state.
    When I try, it says (at runtime) that the state is not defined.
    So I don't know why <mx:VBox
    click="currentState='state2'"/> doesn't work.
    I apprechiate your expertese a lot.

  • How to change state of a constraint from DEFERABLE to IMMEDIATE?

    Hi,
    I am runnig 10gR2 and would like to change state of a constraint from
    DEFERABLE to IMMEDIATE without recreating it.
    The change is working at the session level with
    SET CONSTRAINT <constraint name> IMMEDIATE;
    But this is not visible for other users.
    So my question is, if there is any other way to do it, so the change would be visible for every user.
    Here is what I have done:
    CREATE TABLE TEST_TBL
    ID NUMBER
    ALTER TABLE TEST_TBL ADD CONSTRAINT pk_test_tbl PRIMARY KEY(ID)
    INITIALLY DEFERRED DEFERRABLE;
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> COMMIT;
    COMMIT
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-00001: unique constraint (TEST_SCHEMA.PK_TEST_TBL) violated
    The constraint is checked only at commit,
    To change this:
    SQL> SET CONSTRAINT pk_test_tbl IMMEDIATE;
    Constraint set.
    SQL> INSERT INTO test_tbl VALUES(1);
    1 row created.
    SQL> INSERT INTO test_tbl VALUES(1);
    INSERT INTO test_tbl VALUES(1)
    ERROR at line 1:
    ORA-00001: unique constraint (TEST_SCHEMA.PK_TEST_TBL) violated
    But if I would connect with user B, I would be able to do multiple inserts with value 1.
    Thanks

    I am runnig 10gR2 and would like to change state of a constraint from
    DEFERABLE to IMMEDIATE without recreating it.From Oracle Constraints:
    Note: A non-deferrable constraint is generally policed by a unique index (a unique index is created
    unless a suitable index already exists). A deferrable constraint must be policed by a non-unique index
    (as it's possible for a point of time during a transaction for duplicate values to exist). This is why
    it is not possible to alter a constraint from non-deferrable to deferrable. Doing so would require
    Oracle to drop and recreate the index.
    A PK enforces uniqueness procedurally without relying on a unique index. The main advantage
    of a non-unique index is the constraint can be disabled and re-enabled without the index being dropped and recreated.

  • How do I quickly change writing direction in mail?

    How do I quickly change writing direction in mail without going trough 7 different menu options?
    Is there a quick keyboard shortcut, or maybe an icon I can add to the mail bar?
    Thank you.
    Dan

    Yes I do.
    But you solved my question anyhow!
    I looked at the Input Sources and I noticed that there's a keyboard shortcut for changing writing direction!  cmd+crtl+left arrow (or right arrow for left-to-right) will do the trick.
    Thank you.
    Dan

Maybe you are looking for

  • DVD-R burn fails but...

    When i burn a dvd-r on my macbook pro mid-2012 fails but when i connect one external drive (brand: LG) it works and burns it correctly. It makes a really loud noise and it is vibrating a lot. (The LG drive does not make loud noice and it isn't vibrat

  • Analysis not working.. Clicks and Pops, etc.

    I'm trying to remove clicks and pops, clipped signals and power line hum from an audio track (registered using an iPod mic in a big room so it's full of noises) with the latest Soundtrack Pro 2- I did a Noise Reduction then applied the following Anal

  • Artifacting in Photoshop CS4

    Hi there, I just got a new computer. It's stats are the following: Dell XPS 8300i5 Processor: Intel Core i5-2320 CPU @ 3.00 GHz RAM: 8 gigs System type: 64 bit Graphics card: AMD Radeon HD 6450 I use a Cintiq 21UX. My problem: Weird, random artifacti

  • Why can I get unlimited Verizon Service at Walmart for $45 but not here?

    I'm wondering if anyone knows why I can go down to Walmart and get a Verizon phone with unlimited internet, text and calling for $45 a month but when I go into a Verizon store I have to pay minimum $103 per month for a smaller service plan and then I

  • Problema nel download ebook

    Ho un problema nell'effettuare i download di tutti i miei ebook comprati su IBS sul mio tablet Android. Al momento di effettuare il download, mi appare un messaggio in cui mi chiede di autorizzare il download del libro con il mio account adobe. Quand