Advertisement
Zorge_R

Untitled

Apr 18th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  1. CAMD_ID=0893
  2. CAMD_NAME="mgcamd 1.35"
  3. CAMD_BIN=mgcamd_1.35
  4.  
  5. #Expert window
  6. INFOFILE_LINES=1111111111000000
  7. #Zapp after start
  8. REZAPP=0
  9.  
  10. ########################################
  11.  
  12. logger $0 $1
  13. echo $0 $1
  14.  
  15. remove_tmp () {
  16.   rm -rf /tmp/*.info* /tmp/*.tmp*
  17. }
  18.  
  19. case "$1" in
  20.   start)
  21.   remove_tmp
  22.   /usr/bin/mgcamd_1.35 &
  23.   ;;
  24.   stop)
  25.   killall -9 mgcamd_1.35>/dev/null
  26.   sleep 2
  27.   remove_tmp
  28.   ;;
  29.   *)
  30.   $0 stop
  31.   exit 0
  32.   ;;
  33. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement