Search
j0ke.net Open Build Service
>
Projects
>
hardware
:
raid
>
3dm2
> 3dm2.suse
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 3dm2.suse of Package 3dm2
#! /bin/sh # Copyright (c) 2005 3ware, Inc. # # Author: Michael Benz <linux@3ware.com> # # System startup script for the inet daemon # ### BEGIN INIT INFO # Provides: 3dm2 # Required-Start: $network $remote_fs # Required-Stop: $network $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description: Start 3dm2 daemon. ### END INIT INFO if [ -e /etc/rc.config ]; then . /etc/rc.config fi if [ -e /etc/rc.status ]; then . /etc/rc.status fi # Determine the base and follow a runlevel link name. base=${0##*/} link=${base#*[SK][0-9][0-9]} tdm_bin=/usr/sbin/3dm2 return=$rc_done # Reset status of this service. rc_reset # See how we were called. case "$1" in start) echo -n "Starting 3ware DiskSwitch daemon: " startproc $tdm_bin || return=$rc_failed echo -e "$return" ;; stop) echo -n "Stopping 3ware DiskSwitch daemon: " killproc -TERM $tdm_bin || return=$rc_failed echo -e "$return" sleep 2 ;; status) echo -n "Checking for 3dm2 service: " checkproc $tdm_bin && echo OK || echo No process ;; restart|reload) $0 stop $0 start RETVAL=$? ;; *) echo "Usage: $0 {start|stop|status|restart|reload}" exit 1 esac test "$return" = "$rc_done" || exit 1 exit 0