Re: Manipulating Sharing Services
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