1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/coda/coda-server.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 server daemon
16 # (C) FEB 2002 by René Rebe <rene.rebe@gmx.net>
25 block_begin(start, `Starting CODA server daemon')
26 if [ -f ${VICESRV}/CRASH ]; then
27 echo "$(date): found CRASH, codasrv not started." \
29 echo "found CRASH file, codasrv not started."
32 check(`/opt/coda/sbin/startserver &')
35 block_begin(stop, `Stopping CODA server daemon')
36 if [ -f $PIDFILE ]; then
37 /opt/coda/sbin/volutil shutdown
38 echo "sleeping 40 secs to let codasrv shutdown ..."
41 check(`killall -9 codasrv')