blob: 28a2759756f36831c25ebae0e760d4f85749a078 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/files/sshd.rc6,v 1.22 2007/02/23 10:51:48 uberlord Exp $
opts="reload"
depend() {
use logger dns
}
DSM_ROOT="/opt/dell/srvadmin"
DSM_SA_DATAMGR="${DSM_ROOT}/dataeng/bin/dsm_sa_datamgr32d"
DSM_SA_EVENTMGR="${DSM_ROOT}/dataeng/bin/dsm_sa_eventmgr32d"
DSM_OM_SERVER="${DSM_ROOT}/oma/bin/dsm_om_shrsvc32d"
DSM_OM_CONN_SERVER="${DSM_ROOT}/iws/bin/linux/dsm_om_connsvc32d"
DSM_SA_DATAMGR_PID="/var/run/dsm_sa_datamgr.pid"
DSM_SA_EVENTMGR_PID="/var/run/dsm_sa_eventmgr.pid"
DSM_OM_SERVER_PID="/var/run/dsm_om_shrsvc.pid"
DSM_OM_CONN_SERVER_PID="/var/run/dsm_om_connsvr.pid"
OVERRIDE_LD_LIBRARY_PATH=/opt/dell/srvadmin/jre/lib/i386/client
start() {
ebegin "Starting Dell Data Manager"
start-stop-daemon --start --exec "${DSM_SA_DATAMGR}" \
--pidfile "${DSM_SA_DATAMGR_PID}"
eend $?
ebegin "Starting Dell Event Manager"
start-stop-daemon --start --exec "${DSM_SA_EVENTMGR}" \
--pidfile "${DSM_SA_EVENTMGR_PID}"
eend $?
ebegin "Starting Dell OpenManage Server"
start-stop-daemon --start --exec "${DSM_OM_SERVER}" \
--pidfile "${DSM_OM_SERVER_PID}"
eend $?
if [ "x${ENABLE_WEB_MANAGEMENT}" = "xyes" ]; then
ebegin "Starting Dell OpenManage Connection Server"
LD_LIBRARY_PATH=${OVERRIDE_LD_LIBRARY_PATH} \
start-stop-daemon --start --exec "${DSM_OM_CONN_SERVER}" \
--pidfile "${DSM_OM_CONN_SERVER_PID}" -- -run
eend $?
fi
}
stop() {
ebegin "Stopping Dell OpenManage Connection Server"
start-stop-daemon --stop --exec "${DSM_OM_CONN_SERVER}" \
--pidfile "${DSM_OM_CONN_SERVER_PID}"
eend $?
ebegin "Stopping Dell OpenManage Server"
start-stop-daemon --stop --exec "${DSM_OM_SERVER}" \
--pidfile "${DSM_OM_SERVER_PID}"
eend $?
ebegin "Stopping Dell Event Manager"
start-stop-daemon --stop --exec "${DSM_SA_EVENTMGR}" \
--pidfile "${DSM_SA_EVENTMGR_PID}"
eend $?
ebegin "Stopping Dell Data Manager"
start-stop-daemon --stop --exec "${DSM_SA_DATAMGR}" \
--pidfile "${DSM_SA_DATAMGR_PID}"
eend $?
}
|