SMF - start at boot time, but don't restart - possible?

I'm setting up a software package that has a number of background processes.
I've got SMF manifests created and imported for all of them, and they're working great for starting the processes at boot time, and doing the automatic restarts when one fails.
Here's my problem. It turns out that the users of this software want to be able to use the software's integrated process control methods to stop some of their processes. With the current configuration, they use the software's method to stop one of it's processes, and SMF promptly restarts it.
Is there a way to set up SMF managed software so that SMF starts it at boot time, but then doesn't care if stops later?
Richard

I'm not sure how it would be SMF "managed" in such a case. Obviously you want the management to be elsewhere.
You could use the "legacy" startup scripts in /etc/rcX.d. That will start a process and forget about it, just like pre-Solaris 10. You don't use manifests or have any other benefits of SMF.
If you do want SMF, I guess the question is how you want it to act..
When the users stop the processes, do you want SMF to say enabled or disabled? SMF does not track enabled processes by periodic polling, it does it by tracking contracts. This means that starting a process outside of SMF does not allow SMF to track it.
Darren

Similar Messages

  • I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    You don't need to upgrade your software.  But if you're struggling with Spry, IMO you should cut your losses and switch to something better for the longrun.
    If you have a budget to work with, I highly recommend Project Seven's Pop-Menu Magic 3.  It's easy to use in DW CS4, 5, 6 or CC.  More importantly, it's bullet proof and works in all devices. 
    Pop-Menu  Magic3 by PVII (commercial DW extension)
    http://www.projectseven.com/products/menusystems/pmm3/index.htm
    If you don't have a budget to work with, you can roll your own menus with jQuery plugins.  A bit more effort on your part, but they perform better than Spry.
    jQuery Superfish
    http://users.tpg.com.au/j_birch/plugins/superfish/
    jQuery MegaMenu2
    DEMO:
    http://www.geektantra.com/projects/jquery-megamenu-2/
    DOWNLOAD:
    http://code.google.com/p/jquery-megamenu/
    Nancy O.

  • Auditing a process started at boot time

    Hi All,
    I am having a problem with auditd. I am starting a process of my own at boottime that I would like to audit. I think the problem lies in that my process is not getting an auditID. If I run the process from a terminal after the system is started it audits correctly, only when started at boot will it not audit.
    I have the process's audit class defined in the audit_control file as such (md is my audit class):
    dir:/var/audit
    flags:md,lo,ad,-fw,-fm,-fd,-nt,no
    minfree:50
    naflags:md
    I thought placing it under naflags would allow it to audit without attributes, but this does not work. The audit event and audit class are also properly in place.
    Any help with getting a process to audit when started at boot would be greatly appreciated.
    Victor

    Hi,
    Processes, are not able to start at boot-time as the "processes" is a OS based concept. The closest method you can do is replace the bootloader of Windows with your bootloader then load the Windows through your bootloader, and before loading the OS your
    Bootloader can perform any calculations or start files up as soon as Windows loads. This is the only way to start processes closest to Boot time. 
    In windows vista+ OS this technique would not work because Windows Vista+ has Session separation which by design separates processes into sessions and if you were to start it as soon as the OS starts the process would crash the entire OS as the process would
    not be able to fit in any session as it started before "Winlogon.exe"
    process. Therefore it is not really possible. 

  • I can't open video file in the page , i download and install flash many time but don't work , i use firefox 5 and windows 7

    i can't open video file in the page , i download and install flash many time but don't work , i use Firefox 5 and windows 7

    My current version of Chrome is having problems, too! It's so annoying. Anyone have any suggestions now? I basically can't view or download any PDFs because of this.
    Does anyone else think this is a problem not only with Adobe? I would think Apple would have something to do with this? Wouldn't they get some idea from the developer versions that no browser can open PDFs while running Lion!? Pretty bad customer service on the part of a company that prides itself on being VERY customer-friendly. Wouldn't you say?

  • Process start at boot time..

    Hi All,
    I am developing a client application which needs to be start up at boot time and there is one more requirement that no body 
    should be able to delete this to provide it security.
    Please reply .
    Thanks

    Hi,
    Processes, are not able to start at boot-time as the "processes" is a OS based concept. The closest method you can do is replace the bootloader of Windows with your bootloader then load the Windows through your bootloader, and before loading the OS your
    Bootloader can perform any calculations or start files up as soon as Windows loads. This is the only way to start processes closest to Boot time. 
    In windows vista+ OS this technique would not work because Windows Vista+ has Session separation which by design separates processes into sessions and if you were to start it as soon as the OS starts the process would crash the entire OS as the process would
    not be able to fit in any session as it started before "Winlogon.exe"
    process. Therefore it is not really possible. 

  • I've installed itunes twice. It worked the first time but after I restarted my computer it kept giving me this message: Itunes was not correctly installed. Please reinstall itunes. Error 7 (Windows error 127). What's wrong?

    I've installed itunes twice. It worked the first time but after I restarted my computer it kept giving me this message: Itunes was not correctly installed. Please reinstall itunes. Error 7 (Windows error 127). What's wrong?

    See the second box in Troubleshooting issues with iTunes for Windows updates.
    tt2

  • [SOLVED] rtorrent&screen don't start at boot time

    Hello. I use rc-script from ArchWiki to start screen with rtorrent (http://wiki.archlinux.org/index.php/RTo … ith_screen), but at boot time neither rtorrent nor screen start, although script prints "[DONE]". If I login as root and start script manually it works perfect, but I can't understand why it doesn't start automatically.
    Please, help.
    P.S. Of course script was added to DAEMONS array in rc.conf.
    Last edited by Atragor (2009-03-29 11:56:10)

    jordz, adding command to rc.local didn't change anything.
    LeoSolaris, yes, script is executable, and according to screen's man page:
    -d -m      Start screen in "detached" mode. This creates a new session but doesn't  attach  to  it.  This  is  useful  for  system startup scripts.
    I think it's something that could be called "daemon mode".
    Maybe some environment variables must be set in order to execute screen and rtorrent? I've tried to set HOME manually but it didn't help.

  • Mounting partition fails at boot time, but works after system is up

    **EDIT: ok, I know now the daemon array comes too late. Looks like I have to fiddle with initial ramdisk or mount the partition daemon-style. Which is recommended?**
    I have a fakeraid array which works well with device-mapper. I use dmraid as a daemon to create the nodes.
    No problem when I mount the partition after boot. But now I want to move my /home there, so it has to mount during boot.
    When I have it inside fstab, I get a corrupt superblock error during boot and arch throws me into an maintainance shell.
    What's wrong? Is fstab processed before the daemon array? If that is the case, what would be a good clean way to launch dmraid if it cannot be a daemon?
    Last edited by mindfall (2008-01-24 01:14:58)

    All you should have to do is put dmraid in the HOOKS line in /etc/mkinitcpio.conf and rebuild your kernel (pacman -S kernel26). This will enable you to even have your root partition on the raid array. Edit /etc/fstab to include your home as usual using the device-mapper created raid-set and correct partition.
    Wiki on dmraid

  • Need to repair boot partition but don't have 'Recovery HD'

    I was doing a routine maintenence and Disk Utility is telling me I have a few block counts askew. Everything seems to be working fine ( on the surface of things ) but like to be anal and would like to do a repair.
    However, I don't have a Recovery partition and the App store has decided that I haven't purchased Lion - although I did, I can show you the bank statement. I installed a new hard disk not so long back ( I guess this is the reason why the App store decided I didn't purchase Lion!? ) and reinstalled from a Time Machine backup - it wasn't seemless but I'm techy enough, to make it work, just not a big fan of spending my days learning terminal commands.
    I have a mid 2009 MPB so can't do internet recovery, the Recovery Disk Assistant won't let me create a Recovery Disk on an exernal drive since, yes you've guessed it, I don't have a Recovery Partition.
    Am quite happy to reinstall as long as it doesn't compromise my data but can't find the 'restore my purchases' button on the app store - else if there is a less than obtuse ( and none-sketchy ) method of creating the partition HD or if someone could tell what I'm missing that would be greatly appreciated.
    Thanks in advance
    Mike

    http://support.apple.com/kb/HT4928 You may have "hidden" your purchase. You can unhide it using those instructions. If you can't "restore" or "unhide" them, contact Apple Customer Support and tell them you purchased OS X "Lion" in the App Store and then they'll help you from there.

  • Start Up Issue-Gray Screen, Apple Logo And Cognition Wheel-Blue screen before start up at times but no longer starting up beyond gray screen and cognition wheel

    Power button pressed.
    Start up light okay
    Chimes okay
    Gray screen, apple logo and cognition wheel spinning and the loading bar underneath loading 1/10th of the way.
    Loading bar doesnt load fully and then disappears.
    Gray screen remains with apple logo and cognition wheel only.
    No start up to desktop. Before start up to desk top which is not happening any more a blue screen appeared before the desktop appeared. When start up complete the ' Finder' had no responded and did not work' Multi coloured loading pointer continually turned. ' Network' could not be loaded in 'System Prefrences'.
    Ive tried reading and following propts...Results NVRAM/PRAM - Logic board battery replacement. How much will this cost?
    Hardware test - No problem found
    Safe Boot - ' volume Machintosh HD could not be repaired.'
    ' Run time corruption detected on Machintosh HD device'
    What do you suggest aside from taking it to a apple store?
    Thanks Stephen

    Lion or Snow Leopard? If Lion, boot into your Recovery partition (hold down the Command and R keys whilst booting) and use Disk Utility to verify and, if needed, repair the boot volume.
    If Snow Leopard, use the installation disc and use Disk Utility in the same manner.
    Clinton

  • IMac g3 starts to boot OS9 but then a loud beep and an icon flashes

    I found an old imac G3 that somebody put out in the trash. Plugged it in and the screen comes on with the OS9 logo and it says starting up. But then a loud tone starts to beep from the speakers and an icon starts to flash at the bottom right of the screen. The icon looks like ether a CD or maybe a hard drive and it says "looking" underneath the icon.
    It is the iMac G3 Blueberry with 350mhz, 512k L2 cache, 64 mb sdram, 6g HD, 24x cd drive.
    Please help,

    Hey Big,
    I know what you said about investing in a 9 year old g3 but this is more of a hobby for me right now. I plan on maybe giving it to my son so he can browse the internet with it.
    I've got my two kids on a 400 and a 600 iMac respectively. They're 8 and 9 and spend a lot of time on the Internet.
    That being said i hooked up my ethernet cord to it and for the life of me i can not figure out how to get online in os9.
    And you also said something about updating the firmware, how do i check the firm ware and if i do need to update it?
    Look under the Apple > system profiler > production information. It should reat 4.1.9 f1 if it reads something like 3.0 something it needs to be up dated.
    Do i need a internet conection to update the firmware?
    It would help it's not necessary but can be a pain without it. I have a burned CD with the updater on it since I work with so many iMacs.
    Look here:
    http://docs.info.apple.com/article.html?artnum=106877
    And do i need to start new questions for these?
    It would allow more people to see your post. Often things posted at the bottom of a "solved" post will get ignored.
    I was also looking at HD on ebay
    Hard Drive??
    and some had osx already installed. Is that a good idea and if yes how do i know if my machine will run the version i get?
    You wouldn't. These iMacs will run on 10.4.11 with enough RAM installed. At least 512.
    I'd look for a Panther installer or a Tiger but they will have to be on CD since that's what your iMac came with.
    Richard

  • I have a Macbook Pro 1,2 (2008) running OS 10.6.8 and trying to install Boot Camp but don't have original disk for drivers. What to do?

    I have a MacBook Pro 1,2 (2008) running OS 10.6.8 and trying to install boot camp with windows xp and don't have my original disk for drivers. What do I need to do?

    Call Applecare and ask them to send you a replacement set. The will charge you a nominal fee for shipping and handling.
    Allan

  • Turned on for the 1st time but don't want 2 se up yet

    Ok, so this is a dumb question but i just got my macbook pro about 30min ago and don't want to mess anything up! I already plugged it in to charge and i turned it on and its ready for the set up process but i cant do it until i get home. is there a way to shut down the computer and just set it up later? its at the first step to select my launguage and country. right now its just in sleep mode, should i just leave it like that until i get home tonight and am ready to install and set up everything? i tried pressing the power button again but nothing happened.
    thanks!
    Jenn

    right now its just in sleep mode, should i just leave it like that until i get home tonight and am ready to install and set up everything?
    Yes.
    (35848)

  • GarageBand is Automatically starting on Boot (And I don't want it too)

    Garage Band is automatically starting up when my Mac Mini is booting. How do I keep this from happening?
    - Brad

    You've accidently selected it as a "StartUp Item"
    Open the System Preferences, click on accounts, and then StartUp Items and remove it.
    --HangTime [Will Compute for Food] B-|>

  • I have a new iPhone 4S that is 2 days old. I got it because my old one (6 months Old) starting loosing it's charge 5 days ago. the new one is now acting like the old one. I want to dump everything and start over from scratch but don't want to loose contac

    I have backed up all my photos which was important to me. I dont mind loosing everything except my contacts.
    I did a restore yesterday but that didn't help.

    Contacts are designed to be synced with a supported address book app on your computer where your contacts should be available with or without an iPhone or any cell phone which can be lost or stolen or damaged beyond repair.
    In addition, there are a number of free email accounts that support syncing contacts over the air not involving your computer or involving it in addition to such as with an Apple iCloud account, Yahoo, Gmail, and Hotmail.

Maybe you are looking for

  • Logical database in adhoc query

    Hello All, Can anyone tell me what is the logical database in adhoc query?

  • Xp pro config question with cold fusion(newbie)

    Hello, I'm a beginner and I want to learn studio mx 2004.In trying to learn Macromedia MX for windows ,I've gone thru the installation process in the manual for installing Cold Fusion for the server side of things.My question is, I'm not sure if IIS

  • TS1424 DOWNLOAD ERROR TAP TO RETRY

    trying to download an album (16song) and just keep getting download error tap to retry

  • Album Covers aren't matching up

    The album covers don't match with the correct albums on the iPad. They are correct on the computer in my iTunes account but not on the actual iPad itself. Any ideas on what to do??

  • What version or model of the Macbook Pro is this?

    I might get a Macbook Pro from a friend. I was looking at memory in the Apple store since I'm a web app developer and run local development servers on my laptops and would probably want to upgrade it to 2 GB or 3 GB, but I want to double check the sp