• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Killing a daemon process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing a daemon process


  • Subject: Re: Killing a daemon process
  • From: Bill Bumgarner <email@hidden>
  • Date: Thu, 20 Oct 2005 15:11:07 -0700

On Oct 20, 2005, at 1:54 PM, email@hidden wrote:
My application changes some of the config files for a daemon process. In order for the changes to take affect I need to stop and restart the process. The way I have it working now is I open the .pid file get the number and run the kill command through AuthorizationExecuteWithPrivileges().
The problem is on older OS X versions (10.3.4) this .pid file does not exist. Is there an easier way to kill a root process, or get the PID for it?

A better solution might be to use a kqueue to monitor the config file and respond appropriately within the daemon when it changes. This will also ensure that the daemon won't be disrupted in the middle of an operation -- that it can choose to reconfigure itself at the most opportune time.


b.bum
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Killing a daemon process (From: email@hidden)

  • Prev by Date: Performance issue with CoreData SQLite Data Store
  • Next by Date: Error: parse error before 'AT_NAME' token
  • Previous by thread: Re: Killing a daemon process
  • Next by thread: Re: Killing a daemon process
  • Index(es):
    • Date
    • Thread