]> git.saurik.com Git - apple/launchd.git/blob - launchd/src/StartupItems/AuthServer
launchd-106.20.tar.gz
[apple/launchd.git] / launchd / src / StartupItems / AuthServer
1 #!/bin/sh
2
3 ##
4 # Authentication Server
5 ##
6
7 . /etc/rc.common
8
9 StartService ()
10 {
11 if [ "${AUTHSERVER:=-NO-}" = "-YES-" ]; then
12 echo "Starting Authentication Server"
13 tim
14 fi
15 }
16
17 StopService ()
18 {
19 if [ "${AUTHSERVER:=-NO-}" = "-YES-" ]; then
20 echo "Stopping Authentication Server"
21 fi
22 killall -TERM tim > /dev/null 2>&1
23 }
24
25 RestartService ()
26 {
27 StopService
28 StartService
29 }
30
31 RunService "$1"