Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using this commands to restart my AppleFileServer for sharing. But how I can reload it, without killing, or unloading it?

sudo killall DirectoryService
sudo AppleFileServer
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist
sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist

P.S. The reason I'm asking when I kill it or unload, connection is getting disconnected. I want to reload it without losing connection.

share|improve this question
add comment

migrated from stackoverflow.com Sep 5 '11 at 15:19

This question came from our site for professional and enthusiast programmers.

2 Answers

If it's OSX Server, use sudo serveradmin start/stop afp.

share|improve this answer
add comment

If it's OSX Server, use sudo serveradmin start/stop afp.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.