/[pdpsoft]/trunk/grid-mw-security/ees/setup/ees.init.d
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/setup/ees.init.d

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1846 by aramv, Thu Jul 8 15:50:05 2010 UTC revision 1847 by aramv, Thu Jul 8 15:54:25 2010 UTC
# Line 29  elif [ -f /etc/debian_version ]; then Line 29  elif [ -f /etc/debian_version ]; then
29    echo_failure(){    echo_failure(){
30      echo failure      echo failure
31    }    }
32    start_ees_daemon="start-stop-daemon --start --chuid $nonprivaccount --exec $fullprog $configfile"    start_ees_daemon="exec start-stop-daemon --start --chuid $nonprivaccount --exec $fullprog $configfile"
33  elif [ -f /etc/SuSE-release ]; then  elif [ -f /etc/SuSE-release ]; then
34    # SUSE-style    # SUSE-style
35    . /etc/rc.status    . /etc/rc.status
# Line 41  elif [ -f /etc/SuSE-release ]; then Line 41  elif [ -f /etc/SuSE-release ]; then
41      rc_failure      rc_failure
42      rc_status -v      rc_status -v
43    }    }
44    start_ees_daemon="start-stop-daemon --start --chuid $nonprivaccount --exec $fullprog $configfile"    start_ees_daemon="exec start-stop-daemon --start --chuid $nonprivaccount --exec $fullprog $configfile"
45  else  else
46    echo_success(){    echo_success(){
47      echo success      echo success
# Line 50  else Line 50  else
50      echo failure      echo failure
51    }    }
52    echo -n "Warning! Unable to determine the correct daemon runner for your distribution."    echo -n "Warning! Unable to determine the correct daemon runner for your distribution."
53    start_ees_daemon="$fullprog $configfile"    start_ees_daemon="exec $fullprog $configfile"
54  fi  fi
55    
56  start() {  start() {
# Line 69  start() { Line 69  start() {
69        fi        fi
70      fi      fi
71      # Starting EES daemon now.      # Starting EES daemon now.
72      exec ${start_ees_daemon} && touch $lockfile      ${start_ees_daemon} && touch $lockfile
73      if [ $? -eq 0 ]; then      if [ $? -eq 0 ]; then
74          echo_success          echo_success
75      else      else
76          echo -n "EES failed to start"          echo -n "EES failed to start"
77          echo_failure          echo_failure
78      fi      fi
79        echo
80  }  }
81    
82  stop()  {  stop()  {

Legend:
Removed from v.1846  
changed lines
  Added in v.1847

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28