#!/bin/bash
|
|
#
|
|
# ROCK Linux: /etc/rc.d/init.d/coda-utils
|
|
#
|
|
# Desc: The CODA filesystem helper utility daemons
|
|
# Runlevel: 30 rcX
|
|
#
|
|
# (C) FEB 2002 by René Rebe <rene.rebe@gmx.net>
|
|
#
|
|
|
|
if [ "$(cat /vice/hostname)" == "$(cat /vice/db/scm)" ]; then
|
|
IS_SCM=yes
|
|
fi
|
|
|
|
main_begin
|
|
|
|
block_begin(start, `starting CODA helper utilities (auth2, rpc2, ...)')
|
|
if [ "$IS_SCM" == "yes" ]; then
|
|
check(`/opt/coda/sbin/auth2 -chk')
|
|
check(`/opt/coda/sbin/rpc2portmap')
|
|
check(`/opt/coda/sbin/updatesrv')
|
|
else
|
|
check(`/opt/coda/sbin/auth2')
|
|
fi
|
|
check(`/opt/coda/sbin/updateclnt -h $(cat /vice/db/scm)')
|
|
block_end
|
|
|
|
block_begin(stop, `stopping CODA helpers utilities (auth2, rpc2, ...)')
|
|
if [ "$IS_SCM" == "yes" ]; then
|
|
check(`killall -9 rpc2portmap')
|
|
check(`killall -9 updatesrv')
|
|
check(`killall -9 auth2')
|
|
fi
|
|
check(`killall -9 updateclnt')
|
|
block_end
|
|
|
|
main_end
|