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

[PROBLEM SOLVED] Re: 3ware 3dm2 Start Script



Hallo,
vielen Dank! Konnte das script mit Veränderungen des Pfades benutzen!

wer es für die Version 3dm2 benötigt:

##############################
#!/bin/sh
case "$1" in
'start')
#! /bin/sh
#
# 3dm2 Start the 3dm2 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/3dm2
NAME=3dm2
DESC="3ware Escalade daemon Version 2"
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
;;
'stop')
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0





Reply to: