# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/coda/coda-utils.init # Copyright (C) 2004 - 2026 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- # # Desc: The CODA filesystem helper utility daemons # Runlevel: 30 rcX # 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