- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
start() {
echo "starting Adaptec Storage Manager agent ..."
kill `ps axwww | grep java | grep StorMan | grep ManagementAgent | cut -b 1-6` 1>/dev/null 2>&1
sleep 2
kill -9 `ps axwww | grep java | grep StorMan | grep ManagementAgent | cut -b 1-6` 1>/dev/null 2>&1
sh /usr/StorMan/StorAgnt.sh >/dev/null 2>&1 &
sleep 1
echo
}
stop() {
echo "stopping Adaptec Storage Manager agent ..."
kill `ps axwww | grep java | grep StorMan | grep ManagementAgent | cut -b 1-6` 1>/dev/null 2>&1
sleep 2
kill -9 `ps axwww | grep java | grep StorMan | grep ManagementAgent | cut -b 1-6` 1>/dev/null 2>&1
sleep 1
echo
}
Кусок скрипта для RAID от фирмы Adaptec. Боюсь смотреть, что они там в java накодили.