Setup Guide

25
DellProtectedWorkspaceManagementServerInstallandConfigurev2.2
ConfiguringtheDPWMSSYSVstartupscript
InordertosimplifyandautomatethestartupofDPWMS,thefollowingSYSVstartupscriptcanbeaddedtothesystem.
Beforecreatingthestartupscript,achangetothenumberoffilesasingleprocesscanaccessneedstobemade.By
increasingthislimit,itallowstheDPWMSprocess
tohandleahighernumberofrequestsperAPIsystem.Thefilethat
needstobemodifiedis:
/etc/security/limits.conf
Usingthevicommandtoeditthisfile,gototheendofthefileandlookforthefollowingentries(theexactsettingsmay
vary):
root soft nofile 4096
root hard nofile 8192
Modifytheseentriesbysetting
bothlimitsto65536.Iftheentriesdon’texistatall,addthemasfollows:
root soft nofile 65536
root hard nofile 65536
Savethefileandexitthevieditor.
Tocreatethestartupscript,startbycreatingtheIMS2startupfilebyrunningthefollowingcommandastherootuser:
vi /etc/init.d/ims2
WhileintheVIeditor,
gointo“insert”modebypressingthe“i”(eye)key,thenpastethefollowingintothefile:
#!/bin/sh
#
# ims2 - this script starts and stops the ims2.0 server
#
# chkconfig: 2345 95 20
# description: Invincea Management Server
# processname: main
# Source function library.
. /etc/init.d/functions
# Source networking configuration
. /etc/sysconfig/network
# Check that networking is up
[ "$NETWORKING" = "no" ] && exit 0
CONSOLE_OUTPUT=/var/log/ims2_console.log
IMS_PATH=/var/www/html/ims2
RUN="${IMS_PATH}"/run.sh
lockfile=/var/lock/subsys/ims2
start() {
echo -n "Starting ims: "
ulimit –n 65536
cd $IMS_PATH && ($RUN >> $CONSOLE_OUTPUT 2>&1 &)
retval=$?
[ $retval -eq 0 ] && echo "started" && touch $lockfile
return $retval
}
stop() {
echo -n "Shutting down ims: "