1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/coda/coda-utils.init
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # Desc: The CODA filesystem helper utility daemons
16 # (C) FEB 2002 by René Rebe <rene.rebe@gmx.net>
19 if [ "$(cat /vice/hostname)" == "$(cat /vice/db/scm)" ]; then
25 block_begin(start, `starting CODA helper utilities (auth2, rpc2, ...)')
26 if [ "$IS_SCM" == "yes" ]; then
27 check(`/opt/coda/sbin/auth2 -chk')
28 check(`/opt/coda/sbin/rpc2portmap')
29 check(`/opt/coda/sbin/updatesrv')
31 check(`/opt/coda/sbin/auth2')
33 check(`/opt/coda/sbin/updateclnt -h $(cat /vice/db/scm)')
36 block_begin(stop, `stopping CODA helpers utilities (auth2, rpc2, ...)')
37 if [ "$IS_SCM" == "yes" ]; then
38 check(`killall -9 rpc2portmap')
39 check(`killall -9 updatesrv')
40 check(`killall -9 auth2')
42 check(`killall -9 updateclnt')