[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/etc/init.d/ -> admind (source)

   1  #!/bin/bash
   2  ### BEGIN INIT INFO
   3  # Provides:             admind
   4  # Required-Start:    $all
   5  # Required-Stop:
   6  # Default-Start:        2 3 4 5
   7  # Default-Stop:         0 1 6
   8  # Short-Description:    Se3 admind
   9  ### END INIT INFO
  10  
  11  
  12  NAME=admind
  13  PATH=/bin:/usr/bin:/sbin:/usr/sbin
  14  DAEMON=/usr/sbin/admind
  15  
  16  PIDFILE=/var/run/$NAME.pid
  17  
  18  trap "" 1
  19  export LANG=C
  20  export PATH
  21  
  22  test -f $DAEMON || exit 0
  23  rm -f /var/remote_adm/*.sh
  24  case "$1" in
  25    start)
  26      echo -n "Starting SE3 admin daemon : $NAME"
  27      start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON &
  28      ;;
  29  
  30    stop)
  31      echo -n "Stopping SE3 admin daemon : $NAME"
  32      #start-stop-daemon --stop --pidfile $PIDFILE --oknodo --exec $DAEMON
  33      start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON
  34      ;;
  35  
  36    *)
  37      echo "Usage: /etc/init.d/$NAME {start|stop}"
  38      exit 1
  39      ;;
  40  esac
  41  
  42  if [ $? == 0 ]; then
  43      echo .
  44      exit 0
  45  else
  46      echo " failed"
  47      exit 1
  48  fi


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1