diff options
Diffstat (limited to 'app-admin/dellomsa/files/init_d_dellomsa')
-rwxr-xr-x | app-admin/dellomsa/files/init_d_dellomsa | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/app-admin/dellomsa/files/init_d_dellomsa b/app-admin/dellomsa/files/init_d_dellomsa new file mode 100755 index 0000000..f5305bb --- /dev/null +++ b/app-admin/dellomsa/files/init_d_dellomsa @@ -0,0 +1,75 @@ +#!/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 + need net +} + +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="/var/run/dsm_om_shrsvc.pid" +DSM_OM_CONN_SERVER="/var/run/dsm_om_connsvr.pid" + +checkconfig() { + gen_keys || return 1 + + "${SSHD_BINARY}" -t ${myopts} || return 1 +} + +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 $? + + ebegin "Starting Dell OpenManage Connection Server" + start-stop-daemon --start --exec "${DSM_OM_CONN_SERVER}" + --pidfile "${DSM_OM_CONN_SERVER_PID}" -- -run + eend $? +} + +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 $? + +} + |