3 # openafs-client Start/Stop the OpenAFS Client
5 # chkconfig: 2345 50 50
6 # description: OpenAFS is a distributed filesystem.
11 [ -f /etc/init.d/functions ] && . /etc/init.d/functions
12 [ -f /etc/sysconfig/openafs ] && . /etc/sysconfig/openafs
16 echo -n $"Updating CellServDB: "
17 cat /usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist > \
18 /usr/vice/etc/CellServDB
19 chmod 644 /usr/vice/etc/CellServDB
21 echo -n $"Starting openafs-client: "
22 if [ -e /var/lock/subsys/openafs-client ] ; then
23 echo -n $"cannot start openafs-client: already running"
24 failure $"cannot start openafs-client: already running"
30 if [ $RETVAL -ne 0 ] ; then
31 echo -n $"failed to load openafs kernel module."
32 failure $"failed to load openafs kernel module."
36 /usr/vice/etc/afsd $AFSD_ARGS
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/openafs-client
40 [ $RETVAL -eq 0 ] && [ "$AFS_POST_INIT" ] && $AFS_POST_INIT
45 echo -n $"Stopping openafs-client: "
46 if [ ! -e /var/lock/subsys/openafs-client ] ; then
47 echo -n $"cannot stop openafs-client: not running"
48 failure $"cannot stop openafs-client: not running"
55 if [ $RETVAL -eq 0 ] ; then
56 rm -f /var/lock/subsys/openafs-client
85 [ -f /var/lock/subsys/openafs-client ] && restart || :
88 echo $"Usage: $0 {start|stop|status|restart|condrestart}"