OpenSDE Packages Database (without history before r20070)
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.

50 lines
1.4 KiB

  1. #!/bin/bash
  2. #
  3. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  4. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  5. #
  6. # Filename: package/.../coda/coda-utils.init
  7. # Copyright (C) 2004 - 2006 The T2 SDE Project
  8. # Copyright (C) 1998 - 2003 Clifford Wolf
  9. #
  10. # More information can be found in the files COPYING and README.
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; version 2 of the License. A copy of the
  15. # GNU General Public License can be found in the file COPYING.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. #
  18. # Desc: The CODA filesystem helper utility daemons
  19. # Runlevel: 30 rcX
  20. #
  21. # (C) FEB 2002 by Ren� Rebe <rene.rebe@gmx.net>
  22. #
  23. if [ "$(cat /vice/hostname)" == "$(cat /vice/db/scm)" ]; then
  24. IS_SCM=yes
  25. fi
  26. main_begin
  27. block_begin(start, `starting CODA helper utilities (auth2, rpc2, ...)')
  28. if [ "$IS_SCM" == "yes" ]; then
  29. check(`/opt/coda/sbin/auth2 -chk')
  30. check(`/opt/coda/sbin/rpc2portmap')
  31. check(`/opt/coda/sbin/updatesrv')
  32. else
  33. check(`/opt/coda/sbin/auth2')
  34. fi
  35. check(`/opt/coda/sbin/updateclnt -h $(cat /vice/db/scm)')
  36. block_end
  37. block_begin(stop, `stopping CODA helpers utilities (auth2, rpc2, ...)')
  38. if [ "$IS_SCM" == "yes" ]; then
  39. check(`killall -9 rpc2portmap')
  40. check(`killall -9 updatesrv')
  41. check(`killall -9 auth2')
  42. fi
  43. check(`killall -9 updateclnt')
  44. block_end
  45. main_end