3 # openafs-client Start/Stop the OpenAFS Client
5 # chkconfig: 2345 50 50
6 # description: OpenAFS is a distributed filesystem.
10 [ -f /etc/init.d/functions ] && . /etc/init.d/functions
11 [ -f /etc/sysconfig/openafs ] && . /etc/sysconfig/openafs
15 echo -n $"Updating CellServDB: "
16 cat /usr/vice/etc/CellServDB.local /usr/vice/etc/CellServDB.dist > \
17 /usr/vice/etc/CellServDB
18 chmod 644 /usr/vice/etc/CellServDB
20 echo -n $"Updating SuidCells: "
21 cat /usr/vice/etc/SuidCells.local /usr/vice/etc/SuidCells.dist > \
22 /usr/vice/etc/SuidCells
23 chmod 644 /usr/vice/etc/SuidCells
25 echo -n $"Starting openafs-client: "
26 if [ -e /var/lock/subsys/openafs-client ] ; then
27 echo -n $"cannot start openafs-client: already running"
28 failure $"cannot start openafs-client: already running"
34 if [ $RETVAL -ne 0 ] ; then
35 echo -n $"failed to load openafs kernel module."
36 failure $"failed to load openafs kernel module."
40 /usr/vice/etc/afsd $AFSD_ARGS
43 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/openafs-client
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
59 rm -f /var/lock/subsys/openafs-client
88 [ -f /var/lock/subsys/openafs-client ] && restart || :
91 echo $"Usage: $0 {start|stop|status|restart|condrestart}"