]> git.saurik.com Git - apple/launchd.git/blob - launchd/src/StartupItems/AppleShare
7d2af69c80517628e65e88a4f788b92d2b5d03cc
[apple/launchd.git] / launchd / src / StartupItems / AppleShare
1 #!/bin/sh
2
3 ##
4 # Apple File Protocol
5 ##
6
7 . /etc/rc.common
8
9 StartService ()
10 {
11 if [ "${AFPSERVER:=-NO-}" = "-YES-" ]; then
12 echo "Starting Apple File Service"
13 /usr/sbin/AppleFileServer
14 fi
15 }
16
17 StopService ()
18 {
19 return 0
20 }
21
22 RestartService ()
23 {
24 return 0
25 }
26
27 RunService "$1"