MacOS: don't install growlagent into prefpanes dir
[openafs.git] / src / packaging / MacOS / openafs.launchdaemon
1 #!/bin/bash
2 export BINDEST=/Library/OpenAFS/Tools
3
4 function afsshutdown()
5 {
6     logger -p local0.notice "Stopping OpenAFS"
7     $BINDEST/root.client/usr/vice/etc/afs.rc stop
8     exit 0
9 }
10
11 logger -p local0.notice "Starting OpenAFS"
12
13 $BINDEST/root.client/usr/vice/etc/afs.rc start
14
15 trap 'afsshutdown' TERM KILL INT QUIT HUP
16
17 while true; do sleep 20; done
18 exit 0
19