diff options
author | ad <ad@pkgsrc.org> | 2001-09-26 07:28:49 +0000 |
---|---|---|
committer | ad <ad@pkgsrc.org> | 2001-09-26 07:28:49 +0000 |
commit | 0df352d9536612f25edd4a11433ef917b9f5a552 (patch) | |
tree | dfc43325b0e44578caad45fddbf1a036eef3417e /sysutils/storage-manager/files | |
parent | 6e2849fe1cc3dcd39d4331f7d6ca0c3f55eb2c0a (diff) | |
download | pkgsrc-0df352d9536612f25edd4a11433ef917b9f5a552.tar.gz |
Adaptec Storage Manager, event logger and associated tools. For use with DPT
and Adaptec I2O SCSI & IDE RAID adapters.
Prepared by myself and lukem.
Diffstat (limited to 'sysutils/storage-manager/files')
-rwxr-xr-x | sysutils/storage-manager/files/dptelog | 30 | ||||
-rwxr-xr-x | sysutils/storage-manager/files/dpteng | 33 | ||||
-rw-r--r-- | sysutils/storage-manager/files/dptmgr.sh | 8 | ||||
-rw-r--r-- | sysutils/storage-manager/files/dptsig.sh | 8 | ||||
-rw-r--r-- | sysutils/storage-manager/files/raidutil.sh | 8 |
5 files changed, 87 insertions, 0 deletions
diff --git a/sysutils/storage-manager/files/dptelog b/sysutils/storage-manager/files/dptelog new file mode 100755 index 00000000000..10514dd88d1 --- /dev/null +++ b/sysutils/storage-manager/files/dptelog @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $NetBSD: dptelog,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ +# + +# PROVIDE: dptelog +# REQUIRE: DAEMON dpteng + +. /etc/rc.subr + +name="dptelog" +rcvar=$name +command="@PREFIX@/lib/dpt/${name}" +start_cmd="dptelog_start" + +dptelog_start() +{ + + echo Starting $name. + $command 2> /dev/null & +} + +dptelog_stop() +{ + + kill `ps ax | grep "lib/dpt/dptelog" | awk '{ print $1 }'` +} + +load_rc_config $name +run_rc_command "$1" diff --git a/sysutils/storage-manager/files/dpteng b/sysutils/storage-manager/files/dpteng new file mode 100755 index 00000000000..6ad44dc341b --- /dev/null +++ b/sysutils/storage-manager/files/dpteng @@ -0,0 +1,33 @@ +#!/bin/sh +# +# $NetBSD: dpteng,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ +# + +# PROVIDE: dpteng +# REQUIRE: DAEMON + +. /etc/rc.subr + +name="dpteng" +rcvar=$name +command="@PREFIX@/lib/dpt/${name}" +pidfile="/tmp/dpteng.LOCK" +start_cmd="dpteng_start" +stop_cmd="dpteng_stop" + +dpteng_start() +{ + + echo Starting $name. + $command 2> /dev/null & +} + +dpteng_stop() +{ + + echo Stopping $name. + kill -9 `cat $pidfile` +} + +load_rc_config $name +run_rc_command "$1" diff --git a/sysutils/storage-manager/files/dptmgr.sh b/sysutils/storage-manager/files/dptmgr.sh new file mode 100644 index 00000000000..fc8818796dc --- /dev/null +++ b/sysutils/storage-manager/files/dptmgr.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# +# $NetBSD: dptmgr.sh,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ +# +DPTMGR_HOME=@PREFIX@/lib/dpt +LD_LIBRARY_PATH=$DPTMGR_HOME:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH +exec ${DPTMGR_HOME}/dptmgr "$@" diff --git a/sysutils/storage-manager/files/dptsig.sh b/sysutils/storage-manager/files/dptsig.sh new file mode 100644 index 00000000000..b51fec03e1b --- /dev/null +++ b/sysutils/storage-manager/files/dptsig.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# +# $NetBSD: dptsig.sh,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ +# +DPTMGR_HOME=@PREFIX@/lib/dpt +LD_LIBRARY_PATH=$DPTMGR_HOME:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH +exec ${DPTMGR_HOME}/dptsig "$@" diff --git a/sysutils/storage-manager/files/raidutil.sh b/sysutils/storage-manager/files/raidutil.sh new file mode 100644 index 00000000000..978a7870f7c --- /dev/null +++ b/sysutils/storage-manager/files/raidutil.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# +# $NetBSD: raidutil.sh,v 1.1.1.1 2001/09/26 07:28:49 ad Exp $ +# +DPTMGR_HOME=@PREFIX@/lib/dpt +LD_LIBRARY_PATH=$DPTMGR_HOME:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH +exec ${DPTMGR_HOME}/raidutil "$@" |