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 if [ -h /usr/vice/etc/CellServDB ]; then
17 rm -f /usr/vice/etc/CellServDB
19 echo -n $"Updating CellServDB: "
20 cat /usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist > \
21 /usr/vice/etc/CellServDB
22 chmod 644 /usr/vice/etc/CellServDB
24 echo -n $"Starting openafs-client: "
25 if [ -e /var/lock/subsys/openafs-client ] ; then
26 echo -n $"cannot start openafs-client: already running"
27 failure $"cannot start openafs-client: already running"
33 if [ $RETVAL -ne 0 ] ; then
34 echo -n $"failed to load openafs kernel module."
35 failure $"failed to load openafs kernel module."
39 /usr/vice/etc/afsd $AFSD_ARGS
42 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/openafs-client
43 [ $RETVAL -eq 0 ] && [ "$AFS_POST_INIT" ] && $AFS_POST_INIT
48 echo -n $"Stopping openafs-client: "
49 if [ ! -e /var/lock/subsys/openafs-client ] ; then
50 echo -n $"cannot stop openafs-client: not running"
51 failure $"cannot stop openafs-client: not running"
58 if [ $RETVAL -eq 0 ] ; then
62 if [ $RETVAL -eq 0 ] ; then
63 rm -f /var/lock/subsys/openafs-client
93 [ -f /var/lock/subsys/openafs-client ] && restart || :
96 echo $"Usage: $0 {start|stop|status|restart|condrestart}"