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
840 B

  1. #!/bin/bash
  2. #
  3. # ROCK Linux: /etc/init.d/coda-server
  4. #
  5. # Desc: The CODA filesystem server daemon
  6. # Runlevel: 32 rcX
  7. #
  8. # (C) FEB 2002 by Ren� Rebe <rene.rebe@gmx.net>
  9. #
  10. VICE=/vice
  11. VICESRV=$VICE/srv
  12. PIDFILE=$VICE/srv/pid
  13. main_begin
  14. block_begin(start, `starting CODA server daemon ...')
  15. if [ -f ${VICESRV}/CRASH ]; then
  16. echo "$(date): found CRASH, codasrv not started." \
  17. >> ${VICE}/srv/SrvErr
  18. echo "found CRASH file, codasrv not started."
  19. exit "-1"
  20. fi
  21. check(`/opt/coda/sbin/startserver &')
  22. block_end
  23. block_begin(stop, `stopping CODA server daemon ...')
  24. if [ -f $PIDFILE ]; then
  25. /opt/coda/sbin/volutil shutdown
  26. echo "sleeping 40 secs to let codasrv shutdown ..."
  27. sleep 40
  28. fi
  29. check(`killall -9 codasrv')
  30. block_end
  31. main_end