• 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: Manipulating Sharing Services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manipulating Sharing Services


  • Subject: Re: Manipulating Sharing Services
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 10 Mar 2008 22:07:04 -0700


On 10 Mar '08, at 9:10 PM, Jim Brown wrote:

In Tiger one can determine if AFP is running with 'ps -axc | grep AppleFileServer' and AFP can be turned off by simply running a shell command (sudo killall AppleFileServer). This doesn't really work in Leopard for either determining if AFP is running (AppleFileServer doesn't seem to be listed in 'ps -axc' even if its running) or turning it off.

Ouch. Don't just kill the service!
(And the reason you don't see a process for AppleFileServer is that it's launched on demand, when an incoming connection is made to the associated IP port.)


Check the man page for "launchctl".

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Manipulating Sharing Services (From: Jim Brown <email@hidden>)

  • Prev by Date: Re: [Moderator] iPhone discussion here - RETRACTION
  • Next by Date: Re: Checking "Continuously Updates Value" in NSTextView binding cases Core Data failure
  • Previous by thread: Manipulating Sharing Services
  • Next by thread: Cocoa way to get list of user accounts?
  • Index(es):
    • Date
    • Thread