|
|
Easy AFP Reset
This small script will automagically reset the AFP server for you. Just type it into a text file using pico or your favorite editor, and save it as something like resetafp. Change it to be executable by you (chmod 700). You must either be root or use sudo to run it, as AppleFileServer is a root daemon.
Alternatively, you could add the sudo command at the beginning of the two command lines in the script if you don't want to have to type it every time you reset. :-) #!/bin/sh kill -9 `ps x | grep AppleFileServer | awk '{print $1}'` nohup /usr/sbin/AppleFileServer &
Easy AFP Reset
You work too hard, just use the .pid file...
sudo kill -HUP `cat /var/run/AppleFileServer.pid`
Easy AFP Reset
A HUP signal seemed to work for me. So this one liner should work.
Easy AFP Reset
Ooops, didn't notice the first reply. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.29 seconds |
|