mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
896 B

#!/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