[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 3ware 3dm2 Start Script



Sebastian Meier wrote:
wer könnte mir seins zur verfügung stellen?

Vllt. hilft dir das hier weiter:
--- SCHNIPP ---
#! /bin/sh
#
# 3dmd          Start the 3dmd supplied by www.3ware.com
#               Based on skeleton.
#
# Author:       Andreas Neiser
#

set -e

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/3dmd
NAME=3dmd
DESC="3ware Escalade daemon"

PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0

case "$1" in
  start)
        echo -n "Starting $DESC: $NAME"
        start-stop-daemon --start --quiet --oknodo \
                 --background --exec $DAEMON
        echo "."
        ;;
  stop)
        echo -n "Stopping $DESC: $NAME"
        start-stop-daemon --stop --quiet --oknodo \
                --exec $DAEMON
        echo "."
        ;;
  restart|force-reload)
        echo -n "Restarting $DESC: $NAME"
        start-stop-daemon --stop --quiet --oknodo \
                --exec $DAEMON
        sleep 1
        start-stop-daemon --start --quiet --background --oknodo \
                --exec $DAEMON
        echo "."
        ;;
  *)
        echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
        exit 1
        ;;
esac

exit 0
--- SCHNAPP ---

bis dann
andreas





Reply to: