Launchd starting multiple instances of named (BIND)

Hi,
I'm trying to get named (BIND) to launch on startup, so I put the following plist in /Library/LaunchDaemons :
<?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.isc.named</string>
        <key>OnDemand</key>
        <false/>
        <key>ProgramArguments</key>
        <array>
                <string>/usr/sbin/named</string>
                <string>-c</string>
                            <string>/etc/named.conf</string>
        </array>
        <key>ServiceIPC</key>
        <false/>
</dict>
</plist>
And, it launches on startup, except that it keeps launching more instances.  I only need one.  What am I doing wrong?
Thanks,
    -Jon

I figured it out.  I need to run named in the foreground.  Not exactly sure why, but not running it in the foreground must make launchd think that it's not running, so it starts another copy...
The -f option is needed to do this, so the plist should look like this:
<?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.isc.named</string>
        <key>OnDemand</key>
        <false/>
        <key>ProgramArguments</key>
        <array>
                <string>/usr/sbin/named</string>
                <string>-f</string>
                <string>-c</string>
                <string>/etc/named.conf</string>
        </array>
        <key>ServiceIPC</key>
        <false/>
</dict>
</plist>

Similar Messages

  • Starting multiple instances of Matlab in Mac OS X Tiger

    I am trying to start multiple instances of Matlab in Mac OS X 10.4, that is, there are several users in this machine, and they all need to use Matlab. Right now, only one user is able to do so, when a second user logs into his/her account and they start Matlab, it does not start. Actually, if one user has X11 open (not even Matlab) and another user tries to start Matlab it won't start. I'm not sure if this is a license problem, an X11 problem, or a Matlab problem. To start matlab, I am using the StartMATLAB.app located in the Applications folder. Following are the details for the hardware:
    Model Name: Mac Pro
    Model Identifier:
    MacPro2,1
    Processor Name: Quad-Core Intel Xeon
    Processor Speed: 3 GHz
    Number Of Processors: 2
    Total Number Of Cores: 8
    L2 Cache (per processor): 8 MB
    Memory: 8 GB
    Bus Speed: 1.33 GHz
    Boot ROM Version: MP21.007F.B06
    SMC Version: 1.15f3
    Serial Number: 157***UPZ
    Some information about Mac OS:
    System Version: Mac OS X 10.4.11 (8S2167)
    Kernel Version: Darwin 8.11.1
    The version of X11 is:
    X11 1.1.3 - XFree86 4.4.0
    I appreciate your help.
    <Edited by Moderator>

    See this article: An easy way to run multiple instances of any program.
    I believe another alternative is to provide a separate copy of the application in the users own Home folder by placing it in the /Home/Applications/ folder. This may not work for all applications as some simply will not run multiple instances of itself.
    Licensing is of course a separate issue as each unique user may require a license, although many licenses only restrict use to one CPU at a time rather than multiple users on a one CPU.

  • Upon computer startup: "Atte​mpted to start multiple instances of the service&qu​ot;

    Recently installed Diadem and there must be some sort of registry error.  Whenever I startup I get the error "Attempted to start multiple instances of the service" anyone know the registry fix for this? Thanks!
    Attachments:
    NI startup error.jpg ‏16 KB

    Hey Kyle,
    Check your services and see what’s running.  This can be done by going to Start>>Run and type “services.msc”.   Then look for anything that starts with National Instruments or NI.  Look to see if there are any entries running twice or if you are trying to call a service that is already running.
    Nick
    National Instruments
    Applications Engineer

  • Attempted to start multiple instances of the service

    After installing LabVIEW 8.5.1, I keep getting this message after a computer reboot.  It does not say what multiple services are running.  Anyone seen this before?

    SumTumWong-
    Check your services and see what’s running.  This can be done by going to Start>>Run and type “services.msc”.   Then look for anything that starts with National Instruments or NI.  Look to see if there are any entries running twice or if you are trying to call a service that is already running.
    Regards,
    Mike S
    NI AE

  • Runtime.getRuntime().exec(): Starting multiple instances ...

    Hi,
    In my application, the user may start the Internet-Explorer to display a webcam by pressing a button in the java application. My problem is, the every time, the user presses this button, a new instance of the Internet Explorer opens. I cannot use waitFor(), because the Java application must run beside the IE. Even more, it could be possible, that IE is running before the Java application is started.
    How can I ensure, that only one instance is generated? Can I test, if an instance is already running?
    Thanks a lot for your help in advance
    Michael

    the solution that comes to my mind is create a separate thread to invoke IE and in that thread you can use waitFor()
    you can use an if condition and by setting some variable you can assure that only after waitFor() is completed the loop is executed again
    but if IE is already running -- a new browser wil be fine right?

  • Forms10g - starting multiple instances of an application on the client

    Hello,
    On the client forms10g application A is started
    in a browser window XY.
    If I start another forms10g application B
    (in a browser window named XY) the forms application A
    is REPLACED by application B in the existing browser window XY?
    Forms Application A seems to disappear?
    maybe the call of the forms-applet with always the same
    browser window name is the problem?
    any ideas?

    If you are using the same browser window, then I guess that is the way it is supposed to work. To run two different applications separately, you will have to use two different broser sessions.
    Note: Opening a new window using 'Ctrl+N' or File->New->Window will not work with Forms. You need to start a new broswer freshly.

  • Start multiple domains simultaneously on 1 Weblogic server installation?

    Is it okay to start and run multiple domains simultaneously. Better yet, when having multiple domains on 1 WLS server, should each domain have a different port number in order to be run simultaneously?
    Here's my scenario - I installed Oracle Business Intellgence, which by default installs and configures WLS server for certain Business Intelligence applications (BI Publisher). This instance was running fine and good and still is.
    Then I had another application, Oracle Data Integrator, which has a Console piece that requires a domain on WLS. So instead of modifying the existing domain for Oracle Business Intelligence, I created a new domain via the Configuration Wizard and selected those components for Oracle Data Integrator.
    therefore current domains:
    ...\domains\bifoundation_domain --> installed automatically as part of Oracle Business Intelligence
    ...\domains\odi11g --> I created this domain after I
    Now I have 2 domains under 1 WLS Server (windows 7 64bit), but if I startWeblogic.cmd for the bifoundation_domain, and I startWeblogic.cmd for the odi11g...then only the components for the bifoundation_domain become available via the WLS Console.
    Questions:
    - Can I run both domains simultaneously?
    - Should I have modified the bifoundation_domain to include Oracle Data Integrator component; therefore only having 1 domain but having everything run under that domain?
    - Does the Port for each domain matter? both bifounddation_domain and odi11g domain use ports 7001
    Are there any other considerations? Thanks much.

    Hi,
    It is perfectly OK to run multiple domains on a single Weblogic server installation. Only constraint would be you have enough capacity available on your server to start multiple instances.
    Things to note is, if your domain1 is running on listen address : port { localhost : 7001 } then your other domain should be configured on a different port say {localhost : 8001 }. If you want both domain to run on same port then go for virtual IP's to be plumbed on your physical network interface and configure as,
    domain1 - { ip1 : 7001 }
    domain2 - { ip2 : 7001 }
    this way you will can access both domain admin console on same port.
    Remember, Weblogic resources cannot be shared between domain, however a single nodemanager will be enough to monitor both the domains.
    * rank it if answer is helpful :) *
    Thanks,
    Ranjan

  • Multiple instances of mplayer with jack

    "_R_ealtime software mixing ?!?! wtf thats awesome--actually im not a studio junkie, i just need sound on one of them"
    i understand that the casual nature of my involvement with jackd suggests a less-than-appropriate level of respect and diligence for what this almighty app is capable of serving up.  i just need to level audio volume on multiple instances of mplayer with software mixing (my sound card is cheap).
    all my jackd configs are vanilla from the wiki as stated below.  if anyone has another solution or a request for information in regard to this solution please reply.  as always, thanks in advance
    --here is some err... background
    i have a some files that i would like to run with mplayer and a video file [with its own audio] that i would like to run concurrently.  it should be possible to use jackd to let one instance of mplayer show video with no sound while permitting the audio from the other instance to play at arbitrary volume.  without jack, i cannot control sound independantly since both instances seem to use the same device (PCM0).  furthermore i have found that starting multiple instances of mplayer leads to weird artifacts which persist after all running instances of mplayer concurrent with artifact appearance have been closed. 
    so i installed jack-audio-connection-kit following the wiki verbatim.  then i installed qjackctl.  starting jackd as root and qjackctl with sudo allowed me to see the first instance of mplayer but not the second.
    what is the difference between running mplayer through alsa and running mplayer through jack through alsa (not sure if the objects are accurately laid out there but whatever)?  the wiki basically provides an out of the box solution for software mixing a bunch of inputs (i have friends who do sound professionally though not with linux and im envisioning way more complicated stuff than my humble pair of mplayers
    Last edited by poopship21 (2010-09-25 15:20:56)

    ngoonee wrote:
    karol wrote:
    ngoonee wrote:And running mplayer through alsa won't be able to do what you want, simply because the mixing is fixed. JACK and pulseaudio are sound servers which allow you to control the mixing, both can do what you want.
    If you run one file with '-ao null' and the other one with '-vo null' you can manipulate them independently, there's no sound mixing involved, it just allows you "to add visuals to an audio feed spontaneously". They can both be run with 'af scaletempo' to speed up / slow down etc.
    Hmm, wonder if that's what the OP was looking for?
    From his first posts:
    poopship21 wrote:it should be possible to use jackd to let one instance of mplayer show video with no sound while permitting the audio from the other instance to play at arbitrary volume
    Also, read his second post. <shrugs>

  • Multiple instances of weblogic pointing to same public_html

    Hi,
    I am using Weblogic 5.1 and have successfully set it up to start multiple instances
    of weblogic from one weblogic server(each instance has its own unique port).
    Currently I have multiple instances of public_html (one for each instance). Does
    anyone know what I have to do to point all instances of weblogic to a common public_html?
    Many thanks in advance
    Dipen

    create a symbolic link that is called public_html that points to the common
    docroot.
    "Dipen" <[email protected]> wrote in message
    news:3b7cf1bf$[email protected]..
    >
    Hi,
    I am using Weblogic 5.1 and have successfully set it up to start multipleinstances
    of weblogic from one weblogic server(each instance has its own uniqueport).
    Currently I have multiple instances of public_html (one for eachinstance). Does
    anyone know what I have to do to point all instances of weblogic to acommon public_html?
    >
    Many thanks in advance
    Dipen

  • Multiple instances of an air app

    Is there a way to create an AIR app that can have multiple instances of itself running on the same windows machine?

    Ahh.  So you're saying in the air application descriptor under
    <!-- The application identifier string, unique to this application. Required. -->
    <id>YourAppId</id>
    if this is different you can start multiple instances?
    Let's see... [tests]
    Yep, it works.
    Not a lot of fun having to do this manually each time in FB, but at least it's possible.

  • Disallow running multiple instances of the same web start application..

    on the client? I have an application that is launched on the client by clicking on the link to the JNLP file. The problem is that I don't want the application to launch twice if the user clicks the link twice. Is there a way to keep web start from running multiple instances of the same app?
    I don't want to just disable the button after it is clicked because then the user won't be able to get back in if they need to.
    Any help out there?
    Thanks,
    Melanie

    The way I do this is to try connect to an obscure port number on the localhost at startup.
    if this connection succeeds I assume the app is already running. otherwise the program continues and registers as a server at that port number.
    I actually take this a little bit further by registering a web server at this port (I use the Brazil server), That way if the program finds an instance of itself running it can send a message to the web server and ask the program to do something (like start another window if,for instance you wanted to allow this but only within the same VM).

  • Does multiple instances of DAQmx start task result in error?

    I am trying to read voltages from pressure transducers and LVDTs in two separate While Loops. But when running the program there is an error regarding DAQmx Start Task.vi. So I was wondering if multiple instances of DAQmx Start task results in error. I have attached the vi.
    Thanks
    Attachments:
    IsoConsolidationDAQMAX02.vi ‏140 KB

    Thank you for the reply. New to Labview so I didn't know that we had to search using the error code, I tried searching using text though. Will do that from the next time, thanks.
    I do not have the problem with the write tasks but only with the read tasks. Right now I have one start task for all the input from the pressure transducers and LVDTs and three start tasks for the three analogue outputs and the program seems to run fine.

  • Contribute multiple instances of the same connection appear on login/start screen

    I am administering a series of sub-websites under one primary umbrella.
    - The Primary Umbrella site does not run under the Contribute Publishing Server
    - The secondary (child) sites are managed by the Contribute Publishing Server
    - We recently added a user to several of these subsites
    - After we added the user, we've had a problem with other user profiles.
    - Multiple instances of the same connection will appear upon login on the start screen ( about:startscreen ). However the user seems to only be able to credential to one of them, not both.
    I have gone into the user profile directory within Windows directory structure and removed both site dirs. However when restarting and reconnecting, both appear again.
    Anyone else have this issue and what is the remedy and fix?

    I tried to add a screenshot, however it would not let me upload.
    I get: An error occurred while trying to submit your post. Please try again.

  • Multiple instances not starting using Windows services

    Hi,
    We have two Oracle instacnes installed in same oracle home. They are not starting using windows 2000 service manager.
    I have to go to svrmgrl and set the ORACLE_SID environment variable to startup each instance. How can I make them start through windows Services instead of manually doing it.
    Is installing multiple instances in same home a good idea?
    These multiple instances are not part of paralell server.
    Regards,
    Wasim.

    Hi,
    I have checked the registry keys and everything looks ok.
    ORACLE_instance_AUTOSTART is true
    ORACLE_instance_PFILE is correct
    ORACLE_instance_SHUTDOWN is true
    ORACLE_instance_SHUTDOWNTYPE is i
    Above values are right for both instances. I even have recreated the services using ORADIM. I can start both instances by going to command prompt set ORACLE_SID and start the instance using SVRMGRL. But they'll not autostart when the machine is rebooted.
    Regards,
    Wasim.

  • Problem with multiple instances of shared printers being installed on client computers when the spooler service is started

    Hello,
    We have Windows Server 2012 and clients using Windows 8.  We've been having some printer problems for awhile now that I haven't been able to figure out for the life of me.  The main problem is the fact that printers are installed on computers automatically
    once the drivers are installed.  The side-effect of multiple instances of each printer showing up is very annoying but I suspect fixing the initial problem will resolve this secondary one.
    Here is the rundown:
    We add the shared printers on logon to the clients using the GPO thus installing the drivers locally.
    Whenever the spooler on the client is restarted with the drivers installed, all of the
    shared printers that were previously installed get duplicated 5 more times (for a total of 6 instances of each shared printer) on the "Devices and Printers" page.  This happens
    all the time.
    Removing them only fixes the issue temporarily, as soon as the spooler or computer is restarted, it seems these shared printers are somehow found on the network and the duplicates return.
    Two of these printers are located on different clients, installed locally and shared while the other three are all installed on a server and shared through it.  The issue is the same on all of them.
    Cleaning the spooler completely (registry and files from C:\system32\spool) fixes the issue temporarily as well since, as soon as the drivers are reinstalled, the issue occurs again.
    I've tried many things (disabling the GPO, editing the GPO, printer shares, registry, etc.) and searched tirelessly online for a cause and solution but I'm stumped.  Does anybody have any idea what might be causing this problem and how to resolve it?
    Thanks for your time!
    Update #1: I just tried adding the NoNetCrawling option in the registry found in this article -> http://support.microsoft.com/kb/320138/en-us
    I couldn't find the same for Windows 8 unfortunately.  I also tried disabling network discovery and all other sharing options to no avail.
    Update #2: I tried isolating the computer to a different subnet and restarting the spooler and, sure enough, the issue didn't occur.  This proves that the issue is network share related.  Also, as soon as I change the IP back to the regular domain
    subnet one, the multiple printer instances re-appeared again.
    Update #3: I just tried doing the same thing but on the server where the printers are installed and shared and, sure enough, despite being in a different subnet, the issue occurred.  This leads me to believe there is a setting on this server at fault.
     Question is, which one?

    We have deployed a brand new Active Directory domain for a customer. ALL the servers without exception are Windows 2012 R2 and all clients are Windows 8.1 32bit VDI clients.
    The issue that we have is around network printers. 
    We are deploying 4 printers  from a Windows 2012 R2 Server via the print management/Deploy Printer and assigning that to a GPO. The printers are deployed to the Computers which should mean that the users get all 4 printers which they then should be allowed
    to set their default and personal settings for that printer.
    Our printers are deployed like this:
    1. Created security group
    2. Assigned VDI computers to the security group
    3. Created GPO to reflect security group
    4. Modify GPO to do security filtering based on computer group membership
    5. Deployed 4 x printers through Print Management to the GPO on a per machine basis
    However, on the users Devices and Printers screen we are not seeing the 4 printers. For some users
    they see duplicates of all 4 printers so e.g they can have upwards of 8 or more. Other users have no printers displayed whatsoever. The next time they log off or restart they then have a different amount of printers displayed.
    If they try and set the default then it will set and the next time they check the default may have moved to another printer even without logging off or back on.
    Now, where this gets strange is within an application such as MS Word 2013 or Notepad if they use the file and print menu the printers will be listed, even if the user has no printers displayed in Devices and Printers. If the users selects a printer then they
    can then print OK.
    If we check HKCU\Printers||Connections then the CORRECT 4 printers are showing as to what is being deployed via the GPO so I know that the Windows 8.1 terminals are receiving the correct printers from the GPO.
    To try and correct this over the course of the week we have deployed the printers via Group Policy Preferences to the user and then the PC to no avail. Currently we are using the Print management\Deployed Printers to deploy all 4 printers to the computer via
    the Computer GPO.
    I believe that this issue is related to the display somehow in Devices and Printers rather than a GPO or print server issue as we can see via the registry the clients are receiving the 4 correct mentioned printers as shown in the registry. 
    FYI: We only have around 30 users and all users are getting this problem. All users are receiving the same GPO's and have the same few apps installed, Office 2013, Adobe Reader etc.
    What we want is for the computers to receive all 4 printers. All users should be able to use all 4 printers but the user should be able to select their particular default, depending where they are located or what they are printing that particular day. Their
    particular default should persist after reboot. (We have 2 x Copiers and 2 x HP Laserjets) All users have redirected documents and desktop but the rest of the profile is on the VDI and persists after their reboot. The profile is not roaming as the user is
    assigned a particular VDI.
    After a week of scratching our heads with this we are open to suggestions and any would be appreciated.
    We have tried following the issues on this thread to no avail either as they still return.

Maybe you are looking for

  • PAP2-NA Firmware Update

    Hi, I have PAP2-NA (Unlocked by Factory) with firmware version 2.0.12Lsc. I wanted to Update the Firmware. From Linksys website, i found the latest firmware of 3.1.22Lsc. Is this firmware Vonage specific or any service provider specific? Will Updatin

  • Password Protect Airport?

    How do I password protect Airport?

  • O.T. LightZone - Worth A Look

    The latest version of LightZone is worth a look -it's currently got a 30 day free trial. I found the channel mixer and blend modes made quite a difference to the photos I've played with so far. Note - If you 'save' it saves as an LZN file, to save as

  • Why is my Macbook pro clock running negative numbers?

    My Macbook Pro clock is running negative numbers.

  • Y/t chart stops showing data depending on Maximum Display Range setting

    The y/t graph will not display any data if I increase the Maximum Display Range setting to .8000s or higher.  The data in the file is at 5000 Hz, is this part of the problem?  I have played around with the Time Base and Measurement setting to no avai